teleport-utilities

#7 - published 2 years ago

Teleport Utilities

Adds commands that allow you to do point to point teleportation relative to your location.

Commands
  • /tpto <<u|d|n|s|w|e>distance> […] […] – Will teleport you in a direction and distance, one to three parameters can be used, eg commands: /tpto n20 u30 w20 or /tpto u100.
  • /tprel <x> <y> <z> – Teleports you to the coordinates added relative to your location. Directions for x/y/z are: x is east and west, y is up and down, z is north and south.
  • /tpall < \”playername\” | \”map location\” | <x> <y> <z> > – This command will teleport all players to a player or location on the server. This command has the same syntax as the Rocket /tp command. As with the built in /tp command, this command will skip over players if they happened to be in a car at the time, the command will show which players were skipped.
  • /locate [\”other\”] – Shows your x/y/z coordinates on the map, using other will allow you to see the coordinates of another player. Useful for using in rocket\’s /tp <x> <y> <z> command.
Permissions
  • tpto – For the /tpto command.
  • tprel – For the /tprel command.
  • tpall – For the /tpall command.
  • locate – For using /locate on yourself.
  • locate.other – For using /locate on other players.

 

Important Update Notes:

  • 1.4.0.0: You will need to delete the translations file, coming from an older version of the plugin, for the commands to work properly, a lot of the translation lines were changed to accommodate the new /tpall command.
  • 1.4.4.0: This update adds the aibility to teleport a car on the server using the tpto or tprel commands, There is one limitation to this though, if you are in a car or boat you need to be in the passenger seats to be able to teleport the car without it getting snapped back in place(Built in speed checks in unturned causes this.). The snapping issue doesn\’t affect flyables on the vertical axis, but it does on the horizontal axis, so you can only teleport straight up or down when in the driver\’s seat of a flyable.
  • 1.4.5.0: Fixes the missing method error for teleporting a car, also adds a check to see if there\’s a player in the drivers seat of a car. You will have to reset the translations file for this update.

Default configuration


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">
  <Translation Id="tpto_help" Value="[&lt;u|d|n|s|w|e&gt;distance] [...] [...] - Teleport by direction:distance." />
  <Translation Id="tprel_help" Value="&lt;x&gt; &lt;y&gt; &lt;z&gt; - Teleport to x,y,z coords relative to yourself." />
  <Translation Id="tpall_help" Value="&lt;playername | place | x y z&gt; - Teleports all players to a player or location." />
  <Translation Id="invalid_arg" Value="Invalid Arguments." />
  <Translation Id="can't_locate_player" Value="Can't locate player." />
  <Translation Id="locate_other_not_allowed" Value="You're not allowed to use locate on another player." />
  <Translation Id="location_on_map" Value="Your location on the map is: {0}" />
  <Translation Id="location_on_map_other" Value="Player: &quot;{0}&quot; location on the map is: {1}" />
  <Translation Id="tp_success" Value="You have been teleported to: {0}" />
  <Translation Id="tp_fail_vehicle" Value="Failed to teleport vehicle: There must be no driver in the car." />
  <Translation Id="can't_find_location" Value="There's no players or locations by that name on the server." />
  <Translation Id="no_players_tpall" Value="There were no players found to teleport." />
  <Translation Id="tpall_num_teleported" Value="{0} players have been teleported to: {1}, excluded players: {2}" />
</Translations>

Commands and permissions


/tpall <playername | place | x y z>

Permissions: tpall

Teleports all players to a player or location.


/tpto [<u|d|n|s|w|e>distance] [...] [...]

Permissions: tpto

Teleport by direction:distance.


/tprel <x> <y> <z>

Permissions: tprel

Teleport to x,y,z coords relative to yourself.


/locate ["name"]

Permissions: locate

Prints out the location of a player on the map for usage in the /tp command.


Git changelog


2220d235f27f377 2017-01-20 18:54:56

libs

    732c6637583883d 2016-11-04 17:03:06

    Update for Unturned 3.17.4.0

      b05b01ce7f826a3 2016-11-04 17:02:45

      libs

        dfbae705548a831 2016-10-08 04:08:32

        Libs

          d5613b9fbf99b48 2016-06-19 00:56:12

          Libs

            659f37a3e6245ab 2016-04-26 00:10:47

            Fix the missing method error and add a check for a player in the drivers seat.

              c1d53e39ccde71e 2016-04-10 08:05:06

              Added the ability to teleport a car.

                a094f45481ce0cd 2016-04-08 16:24:04

                Updated for new rocket.

                  f3653673e575b78 2016-02-20 21:26:54

                  Remove RCON print feature, handled by rocket now.

                    ec24c4bd4baddfb 2016-01-31 07:45:05

                    Added RCON printing feature like in my other plugins.

                      a9f9cca1777ac0d 2015-12-24 02:51:34

                      Updated to work on Rocket 4.8.

                        b56d67b1b577a1a 2015-10-09 22:58:46

                        Updated to work with Unturned 3.13.2.1.

                          29337d7d7895d33 2015-09-27 04:17:28

                          Added the tpall command to allow teleporting all players to a player or location.

                            740de47b200ce04 2015-08-05 23:14:07

                            Fix for locate not working for someone with internal admin without having the locate.other permission set to the group they're in.

                              411a3e4b7e56b9e 2015-07-31 23:42:51

                              Removed configuration, as I have no config options in the plugin.

                              • (it was only a workaround to have the translation file saved when it was created.)

                              f1cb8116703af0e 2015-07-29 01:19:15

                              Some code simplifacation.

                                0a198e33fa048c2 2015-07-28 04:08:22

                                Updated to work on Rocket mod v4.6.

                                  8cc8d47483af73b 2015-06-28 08:53:25

                                  Adding the /tpto command, works by using direction and distance in the command, like /tpto u10 n100.

                                    94eb62e47ab16d5 2015-06-28 07:37:42

                                    Added the /tprel command, teleports reletive to yourself, offset in x y z.

                                      d4471af3cac7316 2015-06-28 00:31:03

                                      Adding the ability to use locate on another player if the playe has the locate.other permission.

                                        Download

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

                                        Repository

                                        github.com

                                        License

                                        MIT

                                        Author

                                        cartman-2000