home-command

#191 - published 6 months ago

ZaupHomeCommand

So you are out on the town far away from home, your inventory is full, and the zombies just destroyed the last good car in town.  What are you going to do?  Go back home to your bed of course!  With this plugin, all you have to do is type /home to teleport back to your claimed bed.

 

Just drop the .dll file into your plugins folder and add the home command into the permissions file for Rocket under the group you want to have access to this command.  I have provided the default permissions file below with home added to the guest commands.

 

The {0} and {1} are required in the messages that have them by default.

If you type /home and nothing happens, there can be one of two causes.

  1. Your group doesn’t have permissions to use that command.  Type p and see if it shows up in the list.
  2. You put down a bed but never claimed it.
  3. You have to enable time wait if you enable movement restriction.

You will see an error/warning in your console that it cannot load RocketAPI.home as it is already assigned by Zamirathe_HomeCommand.  This is normal and not an error.  I am overriding Rocket’s home command to add functionality.

 

I did add a tweak so you don’t teleport into your bed, but instead right above it.  This should hopefully eliminate any falling out of maps.
Now has the ability to specify different wait times for different groups.

Default configuration


Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

Commands and permissions


/home

Permissions: home

Teleports you to your bed if you have one.


Git changelog


ae01c72fce05d56 2017-01-13 21:25:50

..

    Download

    Build #191
    By downloading this file, you agree to our license terms.

    Repository

    github.com

    License

    MIT

    Author

    Zamirathe