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 Oct 15, 2013@TheOnlyRealTGS
The pleasure is on my side ;)
-
View User Profile
-
Send Message
Posted Oct 15, 2013@xGamingDudex
Okay sound great :)
Thanks for a great plugin!
-
View User Profile
-
Send Message
Posted Oct 15, 2013@TheOnlyRealTGS
I'm planing to rewrite it, to add the some new features and also change the location finding algorithm, when I get time for it. Will see if I can reduce the CPU stress then ;)
-
View User Profile
-
Send Message
Posted Oct 14, 2013Hi,
It seems like this plugin is pretty CPU heavy:
http://aikar.co/timings.php?url=6236951
Could you do something to optimize it?
-
View User Profile
-
Send Message
Posted Oct 11, 2013@ROTUstaff
The range option is there in case you want players only to be able to teleport if they are with in range from either spawn or the given zone that the player is trying to teleport to
There is no obvious reason for why that should happen, but it might be some of your settings and your world. you should check the settings under "SpawnOn" which might have to do with it, if not then it might just be random. Also how big is the zone, if the total zone is 6k and you see players spawn 5k from the center, then it might just be random. If the total zone is 30k then it seams to be something weird with the settings or the world
Also you should check that the zone is set properly in the config and see that it goes more 5k from spawn
-
View User Profile
-
Send Message
Posted Oct 11, 2013Two questions-
What exactly does the "range" option in the config file do? Does it define an area where you can teleport to, or an area that you can't teleport to?
I have a very large area defined for my default zone, yet players only seem to be teleported to a location within .5k-2k blocks of the center of it. Why is this?
-
View User Profile
-
Send Message
Posted Oct 2, 2013That seams like an error at dev.bukkit.org's side, which I can't do any thing to fix
Also the error might just occur just for a short amount of time so you could always just try it again or this one: http://dev.bukkit.org/media/files/741/44/RandomLocation_v4.30.jar
If it doesn't work, just reply and I see if I can upload the plugin to media fire or something similar ;)
-
View User Profile
-
Send Message
Posted Oct 2, 2013Ehm.. I might be very dumb and just clicking the wrong thing, but whenever I try to download your plugin I get an error.. o.o
I get this:
Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] Curse.DownloadSecurity.SecureDownloadModule.ConfigureThrottling(Object sender, EventArgs e) in c:\Projects\Services\Repository\Framework\Curse.DownloadSecurity\SecureDownloadModule.cs:303 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +164
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18033
If you could please give me another download link, I'd be very happy :)
-
View User Profile
-
Send Message
Posted Oct 2, 2013@xGamingDudex
OMG i feel like a dum dum!
I cant believe I missed that XD
Thank you. your plugin is amazing!
-
View User Profile
-
Send Message
Posted Oct 2, 2013@MrRamziaB
Have you tried this:
"Also a quick tip, go into the Zones.yml and see if you can find the Nether zone. Look at the pos1 and pos2, then set the highest Y value to 120, this will prevent people from spawning on the top layer of bedrock ;) "
-
View User Profile
-
Send Message
Posted Oct 2, 2013@xGamingDudex
Ok it's working, however it is porting my players above the bedrock in the nether lol.
-
View User Profile
-
Send Message
Posted Oct 2, 2013@xGamingDudex
oh! cool!!! The version numbers didnt reflect that on the page. :) thank you for the help.
-
View User Profile
-
Send Message
Posted Oct 2, 2013@MrRamziaB
The newest version should be compatible with 1.6.4, 1.5.2 and 1.4.7
And are you sure that
02.10 01:01:39 [Server] INFO at me.xADudex.RandomLocation.Teleporter.getRandomHeight(Teleporter.java:266)
is the only error message that shows up?
A normal stack trace should look something like this:
(^ this is an stack trace from a bug that was previously in the plugin)
-
View User Profile
-
Send Message
Posted Oct 2, 2013@xGamingDudex
That is the error that shows up in the console. Also, we are using FTB unleashed (mcpc 1.5.2) so we can not use the latest version of the plugin.
-
View User Profile
-
Send Message
Posted Oct 1, 2013@MrRamziaB
Could you show the whole stack trace(Error message) and the Config.yml, and also check that you are using the newest version of the plugin
-
View User Profile
-
Send Message
Posted Oct 1, 2013@xGamingDudex
Thank you for the quick reply.
When doing the /rSet me command, I get:
02.10 01:01:39 [Server] INFO at me.xADudex.RandomLocation.Teleporter.getRandomHeight(Teleporter.java:266)
in the console
-
View User Profile
-
Send Message
Posted Oct 1, 2013Thank you all for 10,000 downloads, it is very much appreciated and may there be 10,000 more!
-
View User Profile
-
Send Message
Posted Oct 1, 2013@MrRamziaB
First you will need to create 2 zones. One of the over world and one of the nether. First stand in the nether and use this command:
/rSet me 10000 Nether
This will create a zone that is measured 10k blocks in every direction from where you are standing, and the zone name is "Nether"
Now to create a portal you may want to be a bit more accurate so use these commands:
/rSet NetherPortal 1
/rSet NetherPortal 2
This will create a zone in world edit style where you first set one corner then the opposite corner, for a zone called NetherPortal
Now you will have to make the zone NetherPortal a portal. To do this use this command:
/rSet type NetherPortal portal
This sets the NetherPortal zone to a portal type
Now you will have to specify to which zone the portal is going to send the player. Then use this command:
/rSet portalToo NetherPortal Nether
This makes the NetherPortal portal teleport any player that walks into the zone to be randomly teleported into the Nether zone.
Thats it, you just repeat the process for the over world but remember to use some different names, as you can't have 2 zones with the same name
Also a quick tip, go into the Zones.yml and see if you can find the Nether zone. Look at the pos1 and pos2, then set the highest Y value to 120, this will prevent people from spawning on the top layer of bedrock ;)
-
View User Profile
-
Send Message
Posted Oct 1, 2013I am not sure I understand how to use this plugin.
I am looking to make a portal where my players walk into it, and are ported to a random point in our nether, ans another portal to a random point in our overworld.
How is this done? (Not looking to fly 20k blocks to set a point for the zone)
-
View User Profile
-
Send Message
Posted Sep 25, 2013@drfrozenfire
Glad it worked, but just to be on the safe side:
The teleport zones are the zones that you walk into too teleport to another zone, but the zone that you are going to teleport too has to be a Teleport zone. So in your case would Garalia-Nibisia need to be a portal zone and Nibisia-Garalia needs to be a teleport zone
Then you use the command /rSet portalToo Garalia-Nibisia Nibisia-Garalia