KRandomTeleport
KRandomTeleport
Allows creation of a sign which will randomly teleport players a specified distance away from sign location. This is useful on worlds were grieving, factional warfare, or PVP is allowed. Normally, a player has to walk a certain distance away from spawn to build, prevent other players from grieving, or being raided too quickly. With this sign you can specify the minimum and maximum distance that a player will be randomly teleported with in.
Sign Creation
These conditions have to be satisfied to create the sign:
- You must have OP (operator) status on the server.
- First line of the sign must be "RandomTeleport" with out the quotes.
- Second line of the sign must be "[Click Me]" with out the quotes.
- Third line must be the maximum teleport distance.
- Forth line must be the minimum teleport distance.
For example:
RandomTeleport [Click Me] 10000 3000
This would teleport players between 10,000 blocks away and 3,000 blocks when they right clicked on the sign.
Water World Warning
I recently updated the plugin, at the request of many users, to not teleport you into water. The problem is there were two ways I could program this into the plugin. The fast way and the slow way. So I choose the fast way. The problem with the fast way is that if you for example had a world with abnormally large amounts of surface water than you could encounter a lockup in the plugin, because essentially it stops the server when it starts calculating to find land and if it never finds any well it will never stop looking. This will likely only effect like 0.0001% of the users of this plugin.
However, if you notice using the signs causes a lockup or the number of cycles is growing quite large and causing your server to stutter just come on here and leave me a comment or private message and I will take the extra time to make it work better for your server. It is just that it will require a hour or two of extra coding time because I have to redesign how it works slightly and of course I am really busy so I am not going to do that unless someone actually needs it!
Changes / Features / Problems
To report desired changes, ask for features, or report problems please just leave a comment below or you can contact me at kmcg3413 at gmail.com.
Developers
If you want the source for this plugin simply unzip the JAR and you will find the source files along side the compiled class files.
Took a look in the plugin.yml, Why is the F command in there? It's working fine for me but not for people that don't know how to fix it. If anyone needs a modified version that works with factions, PM me.
Great plugin! Thank you for all your hard work. This has been one of my favorite plugins since 1.4, but unfortunately I'm having some random problems with 1.5.2. The sign will randomly go missing and sometimes the number of cycles it takes to teleport causes the player to time out. Any chance this will be updated?
Why dose this this not work with Factions.
You often teleport in a wall. Please fix it.
Nice plugin :)
Can you make this teleport players from one world to another randomly?
i have been trying to fix it for a long time lol not sure whats wrong but the source code is zipped up in each JAR file so.. if you or somebody can open it up you could try to fix it and i would upload it
just need somebody to basically take over this project and the souce is ultra simple to understand
First off, thanks for making an awesome plugin! I'm using it on a 1.5 server, and all is well. However, sometimes, players teleport into the ground, suffocating them. Is there a way to fix this?
Thanks.
It works with 1.5!
When the players of my server use the sign they say it tps them in the ground and they suffocate and die....(which i have seen them die) but is there anyway to fix this...?
Does this work with 1.5.1?
Not asking much, add a command please
Could you add a features which makes people get charged for using the teleporter?
I know sometimes the teleport is messing up guys. I am working hard to try to fix it. If you have no problems with this plugin please report and if you do also report back. It seems like this may be happening on server that are loaded (you know about 75% capacity or greater) and it may be that the chunk is not for some reason being properly loaded quick enough in the server or in the client or both really.
But, I am working to find a fix!
Nope, use-exact-login-location should be false so you are good and that is not what is causing it.
@kmcguire3413
no, must i type use-exact-login-location=true?
@deamonzz
I do send them to the highest block. This is a bug in Bukkit or Minecraft and I am having to find a work around for it. Do you have use-exact-login-location set in your server properties?
My players keeps dying when they use the teleporter, please help! and some of them spawn in a cave. maybe send them to the highest block at that location
@Sanzennin
http:dev.bukkit.org/server-mods/krandomteleport/files/4-1-1-3b/
The following build should be approved before long. You may be able to use the link above to access the download.
I have added code from another plugin I author that was having problems with players falling through the world. This is a special bit of code that basically does what you describe.
FYI, It is actually a bug in Bukkit because the server loads the chunk when the player arrives however it looks like somehow the server gets too slow in loading the chunk and the player ends up falling through the floor so I am sending the block the player is standing on in advance in hopes that will help the problem some.
Report back if the problem still exists..
@Sanzennin
Okey, so... after trying this plugin out a bit, we noticed the slight problem of the player being teleported under the world 9 times out of 10.
I'm not sure, but at first glance it would seem like you're not loading the chunk where the player is being teleported. Loading the chunk in advance (and perhaps sending a blockchange of the block the player will stand on just to make sure) might help solve this problem even during a time when the server is at its maximum capacity.
Closest ive found to what ive been looking for. Just asking / suggesting, maybe allow random teleport anywhere in the word for a sign example:
So if there is no integer / double able to be read it can read a string. Also could there please be a command for this, its nothing important but it would help out as I would like this to be activated in a portal situation rather than clicking a sign.
Im not sure where your heading with this plugin but theres just a couple of suggestion. Thanks for making this plugin. :)
Nice. Was thinking of making something like this my self. Seen as it's already done, and I'm lazy, I'll probably just use this. ^_^