RandomPlacer
Description
This is my first plugin, and I made it because sometimes players would like to be isolated or find a spot far away from somewhere to build a house. This plugin allows them to teleport to a random location with a command. You may set a boundary for how far they can teleport to limit lag or have them teleport to an arena or something. This simple plugin could help servers be more spread out in their maps and not be really cluttered together.
Important
Current users will need to edit their config, changing `x` to `positiveX`, `z` to `positiveZ`, `nx` to `negativeX`, and `nz` to `negativeZ` or their limits will be reset. This was changed because it may have been confusing at first.
Commands/Permissions
- Type `/tpr` to teleport to a random location on the map. - This requires the permission `RandomPlacer.use`
- Use `/tpr reload` to reload the config. - This requires the permission `RandomPlacer.reload`
Config
- RandomPlacer.limit.positiveX: This is the limit of how far the player can teleport on the x axis. Default is 1000.
- RandomPlacer.limit.positiveZ: This is the limit of how far the player can teleport on the z axis. Default is 1000.
- RandomPlacer.limit.negativeX: This is the limit of how far the player can teleport on the -x axis. Default is -1000
- RandomPlacer.limit.negativeZ: This is the limit of how far the player can teleport on the -z axis. Default is -1000
- RandomPlacer.Teleported: Tells the player their current coordinates after the teleport. {x} will be replaced with their x, {z} will be replaced with their Z.
- Error.Cooldown: Tells the user they have to wait for the command to cooldown before using it. {cooldown} is the number of seconds they have to wait, {s} is for adding an S to the end if the word should be plurl.
- RandomPlacer.cooldown: How many seconds the user has to wait between sending the command again.
Source
Source code can be found here.
Change Log
1.0.0: Initial commit, basic teleportation within limits
1.1.1: Added a cooldown, fixed the config, cleanup
2.0: Cleaned up the code a ton, some edits to the config.
-
View User Profile
-
Send Message
Posted Aug 9, 2012Hello. I cant find the config file.
EDIT: The config file is inside the RandomPlacer.jar
-
View User Profile
-
Send Message
Posted Jul 14, 2012You should make a option for to make people have to pay for it.
-
View User Profile
-
Send Message
Posted Jul 6, 2012@cydp3
Thanks!
(By the way, DanielBarnes and Zippy120 are the same person, I messed up somewhere and now I have 2 accounts)
-
View User Profile
-
Send Message
Posted Jul 3, 2012Excellent plugin guys, keep up the good work!
-
View User Profile
-
Send Message
Posted Jun 16, 2012@ThisUsernameIsMine
Could I see your config.yml?
-
View User Profile
-
Send Message
Posted Jun 16, 2012okay
-
View User Profile
-
Send Message
Posted Jun 15, 2012Awesome plugin! Thank you! :-)
edit: Unfortunately i'm getting an Unhandled exception executing command 'tpr' in plugin RandomPlacer v1.1.0, Caused by: java.lang.NullPointerException :-/
Here's the full error: http://dev.bukkit.org/paste/5578/
@twinkles9999
You're using a Java-version (6.x?) the plugin doesn't support.
-
View User Profile
-
Send Message
Posted Jun 15, 2012I got a error...
http://www.pastie.org/4093406
-
View User Profile
-
Send Message
Posted Jun 14, 2012I like this plugin a lot, its really useful to stop spawn campers. I can't wait until you implement the cooldown option, its the only thing this plugin is lacking.
-
View User Profile
-
Send Message
Posted Jun 7, 2012@rmh4209
It gets the highest block at the location they teleport to, so they shouldn't.
If they do, I could make it so they spawn a few blocks above the position they would originally teleport to, although, If they do, you might just want to set the limits to closer numbers to the spawn, because it might be due to the server not loading the chunks fast enough (testing it actually made me fall into the void a few times on my slow test server :P)
-
View User Profile
-
Send Message
Posted Jun 7, 2012How well does this work with not placing players in blocks? Like, for example, what if their spawn location has a tree there or if it's stone?
-
View User Profile
-
Send Message
Posted Jun 7, 2012@Tango40nc
Sorry about that, I had forgotten to post the download link.
It's up now, and thanks for showing your interest in this plugin :)
-
View User Profile
-
Send Message
Posted Jun 6, 2012DOWNLOAD LINK ???????
This would be interesting if there was a download link
i'ld love to try this out... please post .....
Thank-you**
-
View User Profile
-
Send Message
Posted Jun 4, 2012Great idea! I would use this for my server! Keep up the good work!