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 21, 2014Nice!:) but could you please remove the messeages and the spawn-protection?
-
View User Profile
-
Send Message
Posted Jan 21, 2014@rtcabooservb
Didn't know you could find new files that way ;)
The old formatting error basically means that it didn't found enough settings in the current zone, if this happens it will just use the default settings, like if position settings was missing then it would sett it to 0,0,0. It should therefor not really impact anything as if you set the positions then it would be saved to the zone, though I will look into it ;)
Currently the server saves all files to disk when it does a backup, or when it disables. This prevents the plugin from laging the server by doing to many harddisk writes which can slow down some systems. I could actually maybe change this as you don't do to many zone changes, but thats currently how it works
-
View User Profile
-
Send Message
Posted Jan 21, 2014@xGamingDudex
I always manually check each and every one of my plugins for newer unapproved 'dev builds' per se. In this case, RandomLocation had an update. :P I won't post the link since it isn't approved yet. How do you get the link one may ask? Up the /files/'#' number in the url.
I'm not entirely sure how I got the wrong or old formatting, as I created the zone with the new file, using the in-game commands. I restarted the server twice and on all 3 startups, I noticed the message. Thus, I don't think it auto-corrected the issue.
I believe I may have also found another issue. The zones.txt isn't always updated when there is a change to the file. I believe it is saving the settings customized through in-game commands in the memory until the server shuts down. When it shuts down, the .txt updates. I noticed this when trying to create a zone, change a few settings in-game, then opening the zones.txt file to see exactly what it was doing. The file was empty. Restarted the server, the file was filled with data. Tried again with adding / changing more settings to the zone. Refresh directory, open zones.txt file, wasn't updated. Restarted server, it updated.
-
View User Profile
-
Send Message
Posted Jan 21, 2014@rtcabooservb
How have you been able to download that build as it hasn't been approved yet and I haven't given the link to any one???
Also as the error states you got wrong or old formatting in the zones.txt, which in this state probably is old formatting. It isn't really a problem as the plugin should fix it by it self and it shows the error as I had to change a bit of the formatting due to the new kit feature. The error should only show up the first time as it should auto correct it afterwards ;)
Though I see I got some typos in the error message, so thanks any way ;)
-
View User Profile
-
Send Message
Posted Jan 20, 2014@xGamingDudex
Been testing build 4.54. Vault support is great, thanks! Perhaps in the future, be able to define cost for individual signs or teleport zones instead of one set price for all?
I have ran into an issue however. Config output - http://paste.ubuntu.com/6790225/ zones - http://paste.ubuntu.com/6790221/
-
View User Profile
-
Send Message
Posted Jan 19, 2014@Nickbbeezy
It will be an option to disable it in the next update, which is nearly done and should be out soon ;)
-
View User Profile
-
Send Message
Posted Jan 19, 2014Is there a way to silence the "Teleported to zone" messages when using a zone? One of the reasons I enjoyed this plugin was the silent teleportation.
-
View User Profile
-
Send Message
Posted Jan 19, 2014@Liveonline
To delete a sign you simply destroy the block it is attached to, and to make a zone's first letter a capital one you simply got to write it with a capital letter when you create it, example:
/rLoc create Zone1
If you already have created a zone you can't rename it, but if you stop the server and go into the zone.txt (which is not recommended) then you can find the line which starts with the name of the zone you are looking for and then capitalize it, example
-
View User Profile
-
Send Message
Posted Jan 18, 2014How do you delete a sign and how to make the first letter of the zone a capital letter? I thought this was a good plugin until I missed some basic things
-
View User Profile
-
Send Message
Posted Jan 18, 2014@kr8tors
I'll add it to the todo list ;)
-
View User Profile
-
Send Message
Posted Jan 18, 2014Will this plugin support grief prevention?
Edit: Never mind your hooking Grief Prevention..:D
But have a idea for you, have a option to set a chest to the teleported location like a starter kit. This way if your hooked to GP the chest can have claiming tools in it to claim your plot..
-
View User Profile
-
Send Message
Posted Jan 14, 2014@xGamingDudex
Just for information - I use PEX and I'm waiting for your fix.
-
View User Profile
-
Send Message
Posted Jan 14, 2014@xGamingDudex Nice.. looking forward to a fix :)
-
View User Profile
-
Send Message
Posted Jan 14, 2014@wiedzmin137
@StormLasj
Does it work if you remove the custom zone permission? E.g. setting it to "none"
Also make sure you have spelt it correctly, like some permission plugins requires it to be case sensitive. Try copying: "RandomLocation.Use"
Edit: I'm sorry, seams that it is a bug in the plugin not in any of your configurations, I'll be fixing it and also implementing some of the ToDo list as soon as possible. Thanks for making me aware of the bug ;)
-
View User Profile
-
Send Message
Posted Jan 14, 2014@xGamingDudex
I have this same problem.
I use groupmanager as permission plugin and everyone with randomlocation.admin kan teleport. OPs can also teleport.
Neither command or sign work.
I tried setting a permission but still didnt work. they now have perms: randomlocation.use randomlocation.wasteland
The zone has these settings: Wasteland,Wasteland,false,20,ZONE,true,30,GROUND<sub>18,120,0,0,10,9935,255,10109,-10065,0,-9891,Wasteland,0,0,0,world,tp,none</sub>
-
View User Profile
-
Send Message
Posted Jan 14, 2014@wiedzmin137
What permission plugin do you use?
Also does the permissions for the signs work?
Can OPs teleport?
Can admins or players with something like "*" or "RandomLocation.Admin" teleport?
I checked the new zone config and didn't find anything wrong about it
@skibelidibelido
I seam to have forgotten a way to disable the zone checker, setting it to 0 probably make your server crash, I'll add it to the todo list, but as of now you could try and sett it to something like 1728000 which should be once every 24 hour, which shouldn't be noticeable
-
View User Profile
-
Send Message
Posted Jan 12, 2014@xGamingDudex
Thanks. That seemed to have fixed it. Will be anticipating vault support and be the first one to test as soon as it is available. :)
-
View User Profile
-
Send Message
Posted Jan 12, 2014Hi,
When I run your plugin and have a zone of 10000x10000 then my server will lag. It comes because of the ZoneChecker I think. Can I also disable the ZoneChecker, if so do I need to change the 300 to 0?
I hope to hear from you soon,
~ Mark
-
View User Profile
-
Send Message
Posted Jan 12, 2014@xGamingDudex
Yes but as i say - it isn't work EVEN if thay HAVE permission. When I disabled permissions on RandomLocation portal by your commend - no effect too.
I don't go to developers with simple lack of permission.
EDIT: Argh... I gave you old zone file, here it's new.
-
View User Profile
-
Send Message
Posted Jan 12, 2014@wiedzmin137
Seams that you have setup custom permission for your zones. For the zone "Teleportacja", you have setup the custom perm: "RandomLocation.Teleportacja". To remove this you can tipe "/rLoc option Teleportacja setPerm none" to disable it, or give your user the perm: "RandomLocation.Teleportacja"