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 Jun 3, 2014Can I make it so players respawn at their Random location point? Im sorry if this has been asked before.
-
View User Profile
-
Send Message
Posted Jun 2, 2014@LOLniqqa
I'll add it to the todo list ;)
@EmberC
Have the error been resolved or does it still not work for you? BTW what version are you using, both CraftBukkit (if you use CraftBukkit, if not then also the server software that you are running e.g. Tekkit, MCPC+, Spigot...) and RandomLocation? If you are not using v4.66 then I'll recommend you to update. Also if you go to a normal over world terrain, say a plain or something like that, that contains a good amount of clean flat area and air above it. Then run the following commands:
/rLoc Create TestZone
/rLoc radius TestZone 100
/rSpawn TestZone
If that doesn't work then something is either terrible wrong in the config, or the plugin is not enabling correctly. Look for errors in the log as there might be something there indicating that the plugin didn't enable correctly. You could also try and setup a clean test server and see if it work there, with a clean install of RandomLocation. If that works then try and add the plugins that you also run on your main server one by one and see if it at some point stops working.
-
View User Profile
-
Send Message
Posted Jun 2, 2014If you could add an option for the random location to be a certain amount of blocks away from faction claims that would be great, I've got some players abusing the current system but this proposal would prevent them.
-
View User Profile
-
Send Message
Posted Jun 1, 2014@xGamingDudex
Yes. The original area is a 4x4x4 area. Fearing that was too small I went out into a field and made a /rLoc radius FSarea 25 and had the same issue.
-
View User Profile
-
Send Message
Posted Jun 1, 2014@EmberC
And you are sure there are locations inside the zone that fits the requirements of the zone. Meaning that there somewhere within your zone is a space that consist of one block that you can stand on, and two blocks of air?
-
View User Profile
-
Send Message
Posted Jun 1, 2014@xGamingDudex
It doesn't matter how large I set the area. Even with /rloc radius FSarea 10 it still states it can't find it with /rSpawn FSarea.
-
View User Profile
-
Send Message
Posted Jun 1, 2014@EmberC
Can you teleport to your zone using "/rSpawn FSarea"?
If not then the plugin couldn't find any locations to teleport to. I see that the FSarea is only 3 blocks all in the same y value. Guessing that this is for testing purposes.
The plugin will teleport players feet to somewhere inside the zone. Meaning that if you got a zone that is 1 block high as yours then the players feet will spawn inside the zone. The players heads will then be one block above. If there is a block in the way of the players feet or head the teleportation is canceled. If there is air, water, lava or any blocks that is considered air (torches, rails, tall grass etc) then the teleportation will also be canceled.
-
View User Profile
-
Send Message
Posted May 31, 2014Using latest build I've ran into an issue.
Created two areas: FSarea and setType to teleport FSportal and setType to portal
Then did /rloc setPortalDest FSportal FSarea All commands go through fine however when I enter the portal it states, "Could not find a location to teleport to"
Link to the zones.txt http://hastebin.com/nugiluwusi.cpp
-
View User Profile
-
Send Message
Posted May 31, 2014@SXRWahrheit
Do you mean that players should be able to travel to the nether as normal, but when trying to get back they get teleported to somewhere inside a RandomLocation zone?
You would need to look into other plugins to help you with accomplishing this. Something like preventing players from leaving the nether, only allowing them to use the RandomLocation command or an RandomLocation alias. Or if there is any plugins that allows you to detect and run commands when players enter a world. All else fail then you could try and look for custom coders to make you a plugin which would help you do this. Nothing more then running a command on world travel should be required so with a little fonds you should be able to accomplish this ;).
Don't see this as a feature which many others will benefit from and therefor I don't think that it will be implemented directly into the plugin. Though I wish you good luck in finding a solution ;)
-
View User Profile
-
Send Message
Posted May 31, 2014@xGamingDudex
I would prefer to allow them to use multiple different methods to reach the nether, and then on-teleport to the world get picked up by RandomLocation and dropped in. That doesn't appear to be currently possible, only with command or with portal.
-
View User Profile
-
Send Message
Posted May 31, 2014@SXRWahrheit
@Milk_milk
If that is the case then you could just setup a normal portal where pos1 and pos2 is set int the two corners of the nether portal. When players tries to walk into the nether portal they will be picked up by the RandomLocation zone before teleporting. The plugins got special support to allow this type of portals ;)
-
View User Profile
-
Send Message
Posted May 30, 2014I think SXRWahrheit may be talking about using a netherportal and not a portal set up using random location. If that is what hes talking about, he could ghetto rig it, with multiverse netherportals by setting the netherportals in the world to connect to a fake nether set up with multiverse and create a a randomlocation portal that spans the whole word. Then set the random location portal to send players to the real nether.
I fixed my bug by deleting the .jar and folder and rebooting the machine the server was hosted on, if anyone has a similar bug.
-
View User Profile
-
Send Message
Posted May 30, 2014@SXRWahrheit
It would require any special setup to get your desired result. Just make the Zone in the nether and your done. Next time you should probably read the tutorials before asking as there is nothing in your question which I can see that is of any matter harder to do then exactly what the tutorials shows you.
-
View User Profile
-
Send Message
Posted May 30, 2014I want to set this up such that when players teleport to the nether they get put in a random location, but I don't see a way how to do this with your plugin. Any help?
-
View User Profile
-
Send Message
Posted May 28, 2014@Milk_milk
Thanks for the suggestion, have added a little paragraph under the FAQ section ;)
-
View User Profile
-
Send Message
Posted May 28, 2014@xGamingDudex
Thanks for the response, I think the performance of this plugin is lightweight. You should include somewhere that to reduce some lag on the server, one can use worldborder to do /wb fill which pregenerates the entire world, which should eliminate any lag players experience. It should be noted that /wb fill take a few hours, or even longer with larger borders or slower cpus.
-
View User Profile
-
Send Message
Posted May 28, 2014@Milk_milk
@Dysthymical
Everything should be stored inside /plugins/RandomLocation. Seams like a strange bug, but I am currently looking into optimizing the plugin. I haven't had as much time to work on it lately as I though I would so it might take some time before a proper performance release is out
-
View User Profile
-
Send Message
Posted May 28, 2014Here to report something, My server recently had an issue that caused a crash unrelated to random location, but after restarting the server this plugin eats up a whole entire core for no apparent reason stopping the plugin with the plugman plugin and reloading it causes it to use another whole core, leaving me at 50% cpu usage just from this plugin. My guess is that the crash somehow corrupted the chunk checking feature and causes the cpu to use a whole core nonstop. I've tried reinstalling this plugin and it still doesnt work. Is there a another folder besides the one in plugins that i should delete to reinstall it completely.
-
View User Profile
-
Send Message
Posted May 22, 2014Hello, any dev builds that have patched the performance issue? Or still working on it? Thanks!
-
View User Profile
-
Send Message
Posted May 22, 2014@godgodgodgo
You haven't formatted the respawn section correctly, also just to refer to main page (which I sure you have read, especially the FAQ section):
__________________
FAQ/Help
If you have any questions just ask, BUT before you ask read:
Getting Started
Commands & Permissions
Config Setup
How To Create Teleport Signs
How To Create Portals
Non Teleport Zones Guide
If you have problems with the plugin displaying "Cant find a location to teleport to" then post a comment with the following info:
__________________
Click on the link for config setup to and scroll down to the Respawn option