Random Teleport
Random Teleport
Random Teleport is a simple, lightweight plugin that allows players to use a command, or button and sign to teleport them randomly to the wild based on the preferences in the config.yml!
Description
Random Teleport allows users (with the proper permission) to easily teleport into the wild with one simple command! Despite RandomTP's competitors, this plugin allows you to fully configure the plugin to your own desire! With implementation both command or sign, it's easy to let new players know that they can get to the wild easily! No more /warp wild and having that location constantly griefed, each location is randomized per player!
Installation
Simply drag RandomTP.jar into your plugins folder and reload / restart your server. The configuration file will be automatically generated.
Commands
Command | Aliases | Description |
---|---|---|
/randomtp | rtp | Teleports you to a random location in your world if it is configured with RandomTeleport. |
Permissions
Permission | Description |
---|---|
randomtp.tp | Gives permission to use /randomtp |
randomtp.signs.use | Gives permission to use signs |
randomtp.signs.create | Gives permission to create signs |
How to use signs
RandomTP utilizes signs in an entirely new way! Instead of having buttons and signs, it's purely just signs now! The sign setup should be as follows:
Line 1: [RandomTP]
Line 2: World name (i.e world, MyWorld, world_nether, etc)
Configuration
Click here for configuration help.
Donate
Do you enjoy RandomTP? Wanna buy me a drink, or maybe some fries, think of donating to me! Simply click the Donate button below the Login / User preferences bar (Next to the curse link and above the Download button) and send me a thanks! I appreciate you all using my plugins!
Other Information
Like this plugin? Check out my others! IP Detection - Track players IP and stop ban evaders! CloakBreaker - Stop players from burning other while invisible! Region Module - Let players protect their own lots! Random Teleport - Easily let players teleport to the wild!!
If you like this plugin, and want more like it, think of donating to me!
Can I allow this for only one world?
@Invaerne
Yes it does.
Does it work on 1.9?
Using this in 1.9, it creates the sign but it won't teleport anyone randomly. Not even ME who has OP.
Please fix.
EDIT:
Nvm I just use command blocks
@freakyy85
That is caused because the the coords define such a huge area. When your players type the command, they'll get teleported to a random location. Since the possibilities of locations are so large, chances are that your players are teleported to somewhere they have never been before and so your server generates the map for their area. The generation process is what is likely making it hang. Possibly try reducing the coords.
my players seem to teleport twice and the server seems to hang. i set max coordinates to 20000 is that too much?
Sign not work ? FIRST LINE : [RandomTP] second line : default
I use this plugin and a player of mine spawned in lava when she used /rtp and she never came back to the server. (probs thought it was another troll server)
@buhiroshi0205
Nice spotting! Just uploaded a new version of the plugin, with this fix. Thanks for your help.
@CKGAR
Yep, just uploaded an updated version.
Any word on an update?
@buhiroshi0205
@ShadowRanger24
I can confirm this, it doesn't follow the parameters set in the config.
is there any way you can make it so you only teleport in a certain area like inside a dome. also it says the teleport is not enable in this world?
@ShadowRanger24
It still seems to be unfixed: it gives x=0 half of the time and z=0 half of the time, combined together for a x=0,z=0 1/4th of the time. It also only teleports players to positive coordinates.
I decompiled the jar and looked at the source; in the class com\atomic\rtp\handlers\TeleportHandler, line 114, it should be -i and not -1. Based on the above observations I think this should solve the problem.
@SuperRonanCraft
This has been fixed in the latest version of the plugin (v5.0.1) which is currently pending Bukkit approval and will hopefully be released soon. Thanks for reporting this issue!
Plugin worked just fine in one rap in Factions world, then tried to use it in Survival and gave me this huge error, and didn't tp me, is there a fix?
22.01 20:23:38 [Server] INFO SuperRonanCraft issued server command: /rtp
22.01 20:23:40 [Server] INFO [WorldGuard] Region data changes made in 'SkyBlock' have been background saved
22.01 20:23:54 [Server] INFO SuperRonanCraft issued server command: /rtp
22.01 20:23:54 [Server] INFO CONSOLE issued server command: /list
22.01 20:23:54 [Server] INFO Admins: [Owner] SuperRonanCraft
22.01 20:24:01 [Server] INFO SuperRonanCraft issued server command: /warp survival
22.01 20:24:05 [Server] INFO SuperRonanCraft issued server command: /rtp
22.01 20:24:05 [Server] ERROR null
22.01 20:24:05 [Server] INFO org.bukkit.command.CommandException Unhandled exception executing command 'rtp' in plugin RandomTeleport v5.0.0
22.01 20:24:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_91]
22.01 20:24:05 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_91]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.7.0_91]
22.01 20:24:05 [Server] INFO Caused by: java.lang.NullPointerException
22.01 20:24:05 [Server] INFO at com.atomic.rtp.handlers.CooldownHandler.check(CooldownHandler.java:45) ~[?:?]
22.01 20:24:05 [Server] INFO at com.atomic.rtp.RandomTeleport.teleportPlayer(RandomTeleport.java:149) ~[?:?]
22.01 20:24:05 [Server] INFO at com.atomic.rtp.commands.RTPCommand.onCommand(RTPCommand.java:39) ~[?:?]
22.01 20:24:05 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:05 [Server] INFO ... 15 more
22.01 20:24:07 [Server] INFO SuperRonanCraft issued server command: /rtp
22.01 20:24:07 [Server] ERROR null
22.01 20:24:07 [Server] INFO org.bukkit.command.CommandException Unhandled exception executing command 'rtp' in plugin RandomTeleport v5.0.0
22.01 20:24:07 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_91]
22.01 20:24:07 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_91]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.7.0_91]
22.01 20:24:07 [Server] INFO Caused by: java.lang.NullPointerException
22.01 20:24:07 [Server] INFO at com.atomic.rtp.handlers.CooldownHandler.check(CooldownHandler.java:45) ~[?:?]
22.01 20:24:07 [Server] INFO at com.atomic.rtp.RandomTeleport.teleportPlayer(RandomTeleport.java:149) ~[?:?]
22.01 20:24:07 [Server] INFO at com.atomic.rtp.commands.RTPCommand.onCommand(RTPCommand.java:39) ~[?:?]
22.01 20:24:07 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot.jar:git-Spigot-db6de12-18fbb24]
22.01 20:24:07 [Server] INFO ... 15 more
@ShadowRanger24
It's been working better now, I'm guessing it could have something to do with the map area explored? I don't see behind your algorithms in the plugin, it's just something I would think of as an ordinary user.
@zathrus_writer
Hmm. Strange. I'll look into it tomorrow amd do some testing. Will get back to you soon. Thanks for letting me know.
It looks like when my users use this plugin (and me, too!), it usually TPs to a place near spawn. It's always 0, 84, something and it very rarely goes to a different location. There are several map locations explored already, so even in case this plugin only worked with generated chunks, it's still very strange. Any advice?
@deving100
You can do this with RandomTP signs. Just put '[RandomTP]' on the first line of the sign and the name of the world you want it to randomly teleport you to on the second line. In the latest version, the rtp command will randomly teleport you to the world you're in when you use the command.
Is there a way to make it so a player can use it in world A and get rtp to world B instead of world A to world A. The reason i am asking this is because with versions before 5.0.0 it would do that, but now from what i can see it will only rtp from world A to world A. I would keep using the older version but the server crashing that was fixed in 5.0.0 is a problem.