warps

#7 - published 2 years ago

Warps

Adds commands that allow you to set warps(named teleport points) on the server.

Commands
  • /warp <“warpname”> [“playername”] – Warps self to the set warp point, if a player name is entered into it, it’ll teleport that player to the warp point. This command can be used from the console if the player name is supplied.
  • /setwarp <“warpname”> – Sets a warp were you’re at on the map.
  • /delwarp <“warpname”> – Deletes a warp. Usable from console.
  • /delwarpall <“Map name”> – Deletes all warps for a specific map at once. This command is usable from console.
  • /warps [“partial warpname”] – lists the warps that are set on the server, if a warp name is entered, it’ll search for all of the warps matching the the entered warp name. Usable from console.
Permissions
  • warp – Allows basic warp
  • warp.other – Allows the player to warp another player.
  • warpcharge.override – Allows a player to use all commands without being charged.
  • setwarp – Allows setwarp
  • delwarp – Allows delwarp
  • delwarpall – Allows delwarpall
  • warps – Allows warps
Configuration
  • UconomyEnable – Enables the Uconomy features in the plugin. (Having Uconomy on the server is optional if this is set to false.)
  • WarpCargeEnable – Enables a cost to use the warp command.
  • WarpCost – Sets the price for the warp command.
  • WarpOtherChargeEnable – Enables a cost to use the warp command on other players.
  • WarpOtherCost – Sets the price for warping other players.
  • SetWarpChargeEnable – Enables a cost to set warps.
  • SetWarpCost – Sets the price for setting warps.
  • DelWarpChargeEnable – Enables a cost to delete warps.
  • DelWarpCost – Sets the price to delete warps.
  • EnableWaitGroups – Enables the Wait for warp Feature in the plugin, warps are instant with this set to false.
  • EnableMovementRestriction – Enables a movement restriction check during the wait time on warps.
  • WaitGroups – The list of groups with wait times set to each group, All groups that aren’t set here will use the all wait group for the wait time.
  • Warps – The list of saved warps. Care should be taken if you want to modify the warps list by hand.

 

Important update notes:

  • 1.1.0.0 – This update adds Uconomy features to the plugin, having Uconomy on the server is optional if the Uconomy features are disabled in the plugin(Having UconomyEnable set to false.). Also you will need to delete the plugin’s translations file, when updating the plugin, as there were some new lines added to it for the Uconomy features.
  • 1.1.1.0 – The translations file will need to be deleted again, there’s two new translation  lines in this update.
  • 1.2.0.0 – Major update. This update adds wait times on warps with a configurable wait time on each rocket group. And the plugin has been made somewhat more RCON friendly, will now print non-logger messages directed to the console to RCON as well like help messages, warps list. Note: You will need to regenerate the translations file again to use the new wait groups function in the plugin.
  • 1.2.1.0 – Fixed type in the translations, you either have to reset the translations file to get the fix, or apply the fix to the “warp_wait_nomovement” translations line, setting the second number in the curly brackets from {0} to {1}.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<WarpsConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UconomyEnable>false</UconomyEnable>
  <WarpCargeEnable>true</WarpCargeEnable>
  <WarpCost>100.00</WarpCost>
  <WarpOtherChargeEnable>false</WarpOtherChargeEnable>
  <WarpOtherCost>200.00</WarpOtherCost>
  <SetWarpChargeEnable>false</SetWarpChargeEnable>
  <SetWarpCost>200.00</SetWarpCost>
  <DelWarpChargeEnable>false</DelWarpChargeEnable>
  <DelWarpCost>200.00</DelWarpCost>
  <EnableWaitGroups>false</EnableWaitGroups>
  <EnableMovementRestriction>false</EnableMovementRestriction>
  <WaitGroups>
    <Group GroupName="default" WaitTime="10" />
    <Group GroupName="admin" WaitTime="5" />
    <Group GroupName="all" WaitTime="10" />
  </WaitGroups>
  <Warps />
</WarpsConfig>

Default english translation


Commands and permissions


/delwarp <"warpname">

Permissions: delwarp

Deletes a warp on the server.


/setwarp <"warpname">

Permissions: setwarp

Sets a warp on the server at player location.


/warp <"warpname"> ["playername"]

Permissions: warp

Goes to a warp point on the server.


/warps ["warpname"]

Permissions: warps

Gets a list of warps that have been set to the server.


/delwarpall <"Map name">

Permissions: delwarpall

Deletes all warps from a specific map.


Git changelog


dc3d3c3a024c31d 2017-01-20 18:57:06

libs

    901e28a59a31a51 2016-10-08 04:15:27

    Update to compile with newer Unity version.

      c4d563d6e4f4cbd 2016-10-08 04:14:31

      libs

        3a98816d3f67b50 2016-06-19 01:10:34

        Libs

          b3fd16ce71b2dc3 2016-04-08 16:21:13

          Fix bug with charging players where their balance will go negative.

          • Remove rcon printing feature in plugin, handled by rocket now(redundant.).

          5459affdca0623f 2016-02-06 01:24:09

          FIx mistype in the translations.

            a74ecde3c11b07c 2016-01-27 22:00:28

            Small changed to RCON printing, only send to rcon if RCON is enabled.

              7044a33c42f752f 2016-01-27 03:09:41

              Added wait groups and movement restriction.

                1067873fd12d072 2015-12-24 02:26:45

                Updated for Rocket 4.8

                  736cff5efaec9dc 2015-11-24 04:23:16

                  Added some sanity checks for the warps data.

                    b19a3b0dec1b246 2015-10-23 20:34:21

                    Updated to support the new Uconomy update.

                      eb012bafbbf9adc 2015-10-09 22:58:02

                      Updated to work with Unturned 3.13.2.1.

                        28336f512da74e4 2015-09-18 20:35:22

                        Fix warp list bug and add a command to delete all warps from a specific map.

                          2da2199d3f4cd34 2015-09-17 06:04:35

                          Added Uconomy to the plugin so that players can be charged to use the /warp, /setwarp and /delwarp commands.

                            90eaed9938bf2d8 2015-08-26 22:09:10

                            Updated to work with rocket 4.6.2.0.

                              eba5ff41f4392e9 2015-08-17 05:53:46

                              Deny warping when a player is in a car.

                                3fef6be172af495 2015-08-16 07:08:43

                                Order the warps list.

                                  223d4545efbf286 2015-08-16 00:45:43

                                  Initial commit.

                                    Download

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

                                    Repository

                                    github.com

                                    License

                                    MIT

                                    Author

                                    cartman-2000