zauphomecommand

last built 2 days ago
Build #227
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Community Plugin
This plugin is maintained by the RocketMod Community.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

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


<?xml version="1.0" encoding="utf-8"?>
<HomeCommandConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Enabled>true</Enabled>
  <DisabledMsg>I'm sorry {0}, but the home command has been disabled.</DisabledMsg>
  <NoBedMsg>I'm sorry {0}, but I could not find your bed.</NoBedMsg>
  <NoVehicleMsg>I'm sorry {0}, but you can't be teleported while inside a vehicle.</NoVehicleMsg>
  <TeleportWait>false</TeleportWait>
  <WaitGroups>
    <HomeGroup Id="all" Wait="5" />
    <HomeGroup Id="admin" Wait="0" />
    <HomeGroup Id="moderator" Wait="3" />
    <HomeGroup Id="default" Wait="5" />
  </WaitGroups>
  <TeleportMsg>You were sent back to your bed.</TeleportMsg>
  <FoundBedNowWaitMsg>I have located your bed {0}, please wait for {1} seconds to be teleported.</FoundBedNowWaitMsg>
  <MovementRestriction>false</MovementRestriction>
  <FoundBedWaitNoMoveMsg>I have located your bed {0}, now don't move for {1} seconds while I prepare you for teleport.</FoundBedWaitNoMoveMsg>
  <UnableMoveSinceMoveMsg>I'm sorry {0}, but you moved.  I am unable to teleport you.</UnableMoveSinceMoveMsg>
  <NoTeleportDiedMsg>Sorry {0}, unable to finish home teleport as you died.</NoTeleportDiedMsg>
</HomeCommandConfiguration>

Default english translation


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

Commands and permissions


/home

Permissions: home

Teleports you to your bed if you have one.


Git changelog


c3ee554bdbc9124 2019-07-16 21:05:14

Update LICENSE

    6b08b0d3b026339 2019-05-01 21:34:50

    fixing for latest unturned

      ae01c72fce05d56 2017-01-13 21:25:50

      ..

        57bdca533612400 2016-12-28 17:32:28

        Fixing reload issue

          b8b9b24c18183e4 2015-12-23 18:25:29

          fix

            93a100c05750cb8 2015-09-09 14:18:03

            Fixing Permission issue

              05865ef5ba59c7d 2015-08-12 18:21:53

              Fix for not read config for wait times.

                dad26f5fcdd3726 2015-07-31 04:15:19

                Fixed config

                  47bdccec4107e8c 2015-07-27 06:27:28

                  Update to Rocket 4.6

                    18395f2b6e16bc3 2015-06-23 22:17:36

                    Update to Rocket 3.11.0.0 and 4.5.0.0

                      9ba730c02f1d7fc 2015-06-03 23:57:53

                      Changed file structure

                        0f7fe0c20f30487 2015-06-03 21:56:34

                        Updated project

                          50f65c65559f4ed 2015-05-26 18:29:24

                          Update to Rocket 4.2.0.0

                            031b06345b7d073 2015-05-09 03:31:54

                            Update to Rocket 3.9.1.0

                              8947561fd378358 2015-05-05 21:35:55

                              Update to Rocket 3.8.0.0

                                9639e3b122aacaa 2015-04-06 18:38:06

                                Updated for Rocket 3.2.0.2

                                  75e8e9d88be0731 2015-04-03 23:48:06

                                  Added wait time based on groups

                                    31c75889b1bfe24 2015-03-28 23:01:48

                                    Update to 3.1.0.0 Rocket

                                      0a03b484ca0a7f3 2015-03-23 18:52:03

                                      Added License.

                                        29aa70341b73cb0 2015-03-23 18:45:43

                                        Create README.md

                                          9518b4ebfc33aea 2015-03-23 18:42:37

                                          Release 2.0.0.1