RandomLocation
RandomLocation
1.9 Update
I haven't done much with this plugin for a really long time, but as it is more or less no longer working for 1.9 I decided that it was probably time for an update. Though with studies and three other jobs, finding time for this projects isn't going to be easy. I have also decided to do a full recode of the project and planing on making it open source, allowing others to help update and implement new features in the future. Please stay tuned for more information regarding updates.
What's RandomLocation
RandomLocation lets you teleport to random location in preset areas. This can be done by command, signs or custom portals. You can also configure it to teleport people that join for the first time to a random location for getting a better start where there ain't others.
Features
- Spawn players in a random location in a preset area
- Easy to use, no configuration needed
- In-game reload
- Full permissions, but not needed
- Teleports through signs
- Teleports through custom portals
- Light Weight
- Cooldown
- Multi-World support
- Choose from spawning in the air with god mode or safely on the ground
- Highly configurable
- Plenty of spawn settings that fits every server from survival or skygrid to urban servers
- Teleport on first join support
- Plenty of settings to edit per zone
- Ability for custom permissions per zone
- Advanced zone options that are easy to configure
- Edit zone options in game
- Take regular updates with custom intervals of the config files
- Command to fit zones to WorldBorder settings
Supported Plugins
RandomLocation will hook into the supported and provide a better location and prevent players from being teleported into protected areas All hooks can be disabled in the config file
- Faction support
- Towny support
- WorldBorder support
- WorldGuard
- Vault (Economy)
Spawning Conditions
You have some config options for how players shall spawn. This is changed under the zone mode You can choose "Ground", "Air" or "Top".
For all the above options except for "air" players will not spawn on or in:
- Lava
- Water
- Fire
- Cactus
- Cobweb
- Normal Portal
- End Portal
- And more
Players will neither spawn in mid air or in solid blocks.
Tutorials
I haven't gotten the time to make a tutorial myself, but if any one else wants to make one then I'll be very great full
Thanks to LegendSmile for providing at least a german tutorial:
https:www.youtube.com/watch?v=_J5ULsNvrqE
FAQ/Help
If you have any questions just ask, BUT before you ask read:
If you have a problem at all then the first thing you should do is see if there is an update, if you got to the latest update then you can also read about all previous updates, and one of the might contain something fixing your issue. This is one of the most common request I get, as people report bugs that are old and fixed. The plugin also contains an auto updater, announcing when a new update is found. When reporting a problem, do also state your plugin version.
If you have problems with the plugin displaying "Cant find a location to teleport to" then post a comment with the following info:
- A screen shot of the result you get from "/rLoc option <ZoneName> info"
- A description of what type of condition the zone is if (does it have a roof, what is the most common ground block, what world is it in, etc.)
- The coordinates (do not have to be precise for bigger zones, can be "400,110,1000", meaning ca x ≈ 400, y ≈ 110... (for both pos1 & pos2)
If you are having lag problems then there is often two reasons. One is that players are teleported to chunks which haven't been loaded before, and therefor the server needs to generate the chunks while it is teleporting the player. To fix this you could try and use WorldBorder which got a fill feature to generate the chunks within a world border.
Another reason for lag might be that you server doesn't got much resources to disposal. Meaning either your server is over loaded or that you don't got a very strong cpu. To reduce the lag created by the plugin, check out the "Performance" section in the config page above. Look into the settings and adjust them to your needs.
Auto Updater
The plugin has its own plugin updater, which checks wether there is an update available or not. The updater will not download anything, only notify console and admins. To disable this and prevent the plugin from using any network access click on this: Config Setup and scroll down to the Auto Updater settings a bit down on the page
Metrics
As of version 4.69 Beta, this plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true
The plugin also got an auto updater, which will check for the latest version and download or only notify if it finds a method. If you want to disable this, go into the config.yml and set "Updater.Enable" to false
Bugs
To report a bug just leave a comment describing you bug, also if you got any errors in the log please provide them to with a web site like pastebin. Also provide the current MC version, RL version and other information that might be of interest like if you are running a custom build like spigot.
- None
ToDo
Todo - Priority
- Add messages file for editing the messages displayed by RandomLocation - Low
- Clean up commands & text - Low
- Add option for radius check in search of protected areas when spawning, e.g. not spawning to near Faction land and so on - Medium
- Add range option for nearest player - Medium
- Add more options to the AIR mode (height and so on) - Medium
- Add more perms (cooldown bypass etc) - Medium
- Allow multiple destination zones for portals (maybe commands too) - Medium
- Custom cooldowns per portal (maybe per destination zone instead, custom cmd, sign and portal cooldown) - Medium
Support
Feeling generous?
You can also check out my youtube channel here.
________________________________________________________________________________________

-
View User Profile
-
Send Message
Posted Jan 12, 2014Hello. I have some problems with using your plugin. When my player go to my RandomLocationPortal, then they get message with permissions denied. I came here becouse my players HAVE permissions. Here's my config and permissions. I use Towny, WorldBorder. Thanks.
EDIT: I forgot add on pastebin that line of permissions: "RandomLocation.Teleportacja".
-
View User Profile
-
Send Message
Posted Jan 12, 2014@terminated000
It should work fine to teleport to a zone in a different world, don't see anything preventing you from doing it ;)
It it doesn't work, please reply as that would have been a bug
@rtcabooservb
I'll add the cost feature to the ToDo list ;)
You need to set the backup interval to 0, not the max backups ;)
-
View User Profile
-
Send Message
Posted Jan 11, 2014@xGamingDudex
Any chance on adding cost/price support through vault for using a random teleport sign? Only feature that looks to be missing that I require on my server.
Also, no way to disable backups? I set max backups to 0 and it produced an error when trying to backup.
-
View User Profile
-
Send Message
Posted Jan 10, 2014@xGamingDudex
Can i make it so when i teleport, im teleporting into a different world? Like multiverse but with buttons ahah.
It would go so well on my server if you could teleport into a different world.
-
View User Profile
-
Send Message
Posted Jan 9, 2014@xk0sk1ngsx
I'll add it to the todo list ;)
-
View User Profile
-
Send Message
Posted Jan 9, 2014Can you make a configurable delay, like essentials where you have to wait a certain time while standing still.
The plugin fits perfectly onto my server, I just wish it had the delay for PVP. :C
-
View User Profile
-
Send Message
Posted Jan 9, 2014@godleydemon
Even if you are using a custom build of Factions you should be able to do "/version Factions" which should return a version number which probably is the same or near the original version number for the version it is build of.
When re-enabling faction support, did you have factions installed which throw an error in the log? If so then it might be that what somehow interrupted the loading of the zone or something like that. It also might be that it failed to save the settings while you had factions installed when that threw the error.
-
View User Profile
-
Send Message
Posted Jan 8, 2014@xGamingDudex
Indeed that was the issue. I'm working off of some one elses work. So who knows how old that version of factions was. Since updating it, it seems the world border stuff works now as well. Curiously though, when re-enabling factions support the portal broke and said there was no destination and I had to reset up the regions.
-
View User Profile
-
Send Message
Posted Jan 8, 2014@xGamingDudex
No errors and those are the exact commands I use plus "/rLoc option world mode Ground"
And then when i save and reload the server after all those commends it goes right back to no ground blocks and coords 0,0,0
-
View User Profile
-
Send Message
Posted Jan 8, 2014@killjoy0593
Could you explain a bit more?
So you use either /rLoc pos1/pos2 <ZoneName> or /rLoc radius <ZoneName> <#Radius>
Then you use "/rLoc option <ZoneName> setGroundBlocks 1,2,3,4,5"
Do you use any of the commands above? Do you reload the server at any time in-between? Do you edit the zones.txt manually?
Could you also see if there are any errors in the log and also send the zone info (/rLoc option <ZoneName> info)
-
View User Profile
-
Send Message
Posted Jan 8, 2014@xGamingDudex
You've got an issue thats really hard to explain, i set the bounds for a rloc zone and it works fine, soon as i add the ground materials. the zone breaks and the coords become 0. contact me on skype at killjoy0593 if you want help on it.
-
View User Profile
-
Send Message
Posted Jan 8, 2014@godleydemon
Thanks for the report but could you also tell what version of Factions you are using, it is a bit old then it might that which is the case
@killjoy0593
Not a bad idea at all, I'll add it to the todo list ;)
-
View User Profile
-
Send Message
Posted Jan 8, 2014Could you please add an option to respawn in a zone too?
-
View User Profile
-
Send Message
Posted Jan 8, 2014Seems I'm getting some major console errors when trying to teleport to a region I set with a radius. Seems it could be an issue with hooking into factions? http://pastebin.com/axgd7qSM
Went and disabled factions support, that's whats causing the error. Thought you'd like to know, BUT I'm needing the faction support as soon as possible :)
Also the world border command isn't working. No error, just says its not a command.
-
View User Profile
-
Send Message
Posted Jan 7, 2014@EmberC
No but I could add it in the next update ;)
-
View User Profile
-
Send Message
Posted Jan 7, 2014@xGamingDudex
Okay thank you. Also is there a way to disable it from telling you what zone you were just teleported too?
-
View User Profile
-
Send Message
Posted Jan 6, 2014@EmberC
You could just use the "/rLoc option <ZoneName> setGroundBlocks 1,2,3,4,5,6,7,8"
-
View User Profile
-
Send Message
Posted Jan 6, 2014can you explain the layout of the zones.txt? Some of it is pretty easy but where do I specify which blocks I want players to spawn on?
-
View User Profile
-
Send Message
Posted Jan 6, 2014@Keyman1986
If you could show any of these errors then that would be of big help to solve the problem
@z1haze
You can setup an alias, like "/wilderness" or what ever you like, the Default zone feature was removed in the latest update as it seams that very few even understood what it was and therefor not using it. Aliases can be applied at the bottom of the config, see Config Setup for more help
-
View User Profile
-
Send Message
Posted Jan 6, 2014is it possible to set this up just so a player can type only '/rspawn' to teleport rather than typing '/rspawn default'? I only have 1 zone