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 Mar 16, 2014Hi, I don't want to have a spawn building or anything at all on my server and so I've set players to spawn in a region when they first join the server however I have come to the realisation that players teleport to the world spawn when they die. Is there a possibility that you could add the ability for the plugin to save where the player first spawned so that they can spawn there everytime they die and don't have a bed?
My current way around this is having a portal region back to the same region as the one used when first joining at the world spawn point.
Thanks
p.s. you marked the latest download as 1.5.2
-
View User Profile
-
Send Message
Posted Mar 16, 2014@soulscapex
Well if you do "/rLoc option <ZoneName> info" and take a screenshot of the result and post that in addition to some background info about the zone (which world: nether/skygrid, environment e.g. City/Natural and what might be the most common surface block e.g. with natural environment it would be grass) then I'll see if you have any settings preventing the zone from finding a location to teleport to
-
View User Profile
-
Send Message
Posted Mar 16, 2014@xGamingDudex
ok then what do you need to see, my config cause i set it up correctly.
-
View User Profile
-
Send Message
Posted Mar 16, 2014@soulscapex
It has been fixed in an earlier update. If it still don't work for you then you probably have some settings wrong. If it is this post you are referring to:
@soulscapex
Then I replied to that here (First one under the download link):
@xGamingDudex
-
View User Profile
-
Send Message
Posted Mar 15, 2014@xGamingDudex
what bout the can not find location to spawn too bug.
only air works on my server and it spawns u 100 feet in the air
-
View User Profile
-
Send Message
Posted Mar 15, 2014@soulscapex
@rtcabooservb
Really sorry about that, it should be fixed here:
v4.63 Download
-
View User Profile
-
Send Message
Posted Mar 15, 2014@rtcabooservb
yes i have the same error flooding my logs.
-
View User Profile
-
Send Message
Posted Mar 15, 2014@xGamingDudex
Still seems to error. http://paste.ubuntu.com/7098006/
-
View User Profile
-
Send Message
Posted Mar 15, 2014the newest release still doesnt allow you to use mode ground ,, even if select false for ignore bed.
also still spams console with
4:48:34 PM
CONSOLE:
ERROR]: Could not pass event PlayerRespawnEvent to RandomLocation v4.62
4:48:34 PM
CONSOLE:
Source) ~[?:?]
-
View User Profile
-
Send Message
Posted Mar 15, 2014@Slind14
Async tasks or threads should not call anything that got to do with the server. Meaning that you can run an async task to download something from the internet, or read/write loads of files. But it should not be used to call anything from the API as Bukkit is not threads safe, and even just calls for reading (meaning not chaining say any of the blocks in a chunk) can cause errors due to how bukkit is coded.
@Slind14
I just tested it and it works fine. But what might be your problem is that you haven't specified a world for your zone. When you do "/rLoc create <ZoneName>" then pos1 & pos2 is set to 0,0,0 in the default world. When you then do "/rLoc fitWorldBorder <ZoneName>" then it will think that the zone is in the default world and therefor look for the world border in that world. To set the world for a zone you need to update one of the pos for that world. You could easily do this by for instance "/rLoc radius <ZoneName> 0" which sets both positions to your current location. Then after you have updated the world for the zone then you can do "/rLoc fitWorldBorder <ZoneName>"
-
View User Profile
-
Send Message
Posted Mar 14, 2014@xGamingDudex
Thanks.
-
View User Profile
-
Send Message
Posted Mar 14, 2014btw, the plugin doesn´t recognice the correct world for the worldborder. if you are in world b and want to set the area to the worldborder it uses the worldborder from the main world "world". Could you check the world before getting the border from worldborder ?
-
View User Profile
-
Send Message
Posted Mar 14, 2014hey xgamingdudex,
would it be possible to let the chunk scan run async ? I mean that is nothing where you need to write data and you can run it before the location is required or let it find the next 200 locations on restart and refresh it every 2 hours..
-
View User Profile
-
Send Message
Posted Mar 14, 2014@TheOnlyRealTGS
@soulscapex
@rtcabooservb
I have uploaded a new version which should have fixed the log spam error, but as the bukkit staff has used TWO WEEKS just to approve the previous version, then I'll rather just give you the download link as some of you seams to be needing it most urgent:
v4.62 download!
@soulscapex
If you see at "Pos1" and "Pos2" you can see that they are set to 0,0,0 meaning at x=0, y=0 and z=0. Try using /rLoc setPos1 <ZoneName> and /rLoc setPos2 <ZoneName> or /rLoc radius <ZoneName> <Radius> to define the area which players can spawn in.
@Sellular
When you say that you downloaded the latest version do you mean v4.60? Since that is not the newest version and contains a bug making the location algorithm fail quite often. Try downloading the new version linked above.
@jaggy80
Have now fixed the backup for you ;)
-
View User Profile
-
Send Message
Posted Mar 14, 2014@xGamingDudex
Okay ill remove it and see.
-
View User Profile
-
Send Message
Posted Mar 14, 2014does anyone know a work around for this
http://prntscr.com/30ob10
no matter what i try ,, only one that works is air.
-
View User Profile
-
Send Message
Posted Mar 14, 2014@rtcabooservb
yes ive tried this fix and it doesnt work still spams the server.
-
View User Profile
-
Send Message
Posted Mar 13, 2014@xGamingDudex
When I remove "Respawn: ''", it regenerates in the config next server restart. Making it a pointless 'temp-fix'. Any ETA on a new build or a dev build with a proper fix?
-
View User Profile
-
Send Message
Posted Mar 12, 2014xGamigDudex I am having lots of trouble. I have a SkyGrid world and everything was working fine until i updated the plugin to the latest version. It then started saying no where to teleport to and then i downgraded to an older version and now its telling non ops They don't got permission to teleport to that area. Please Help!
-
View User Profile
-
Send Message
Posted Mar 12, 2014@TheOnlyRealTGS
@rtcabooservb
As stated dozens of times before, it is due to a bug in the config. Removing "Respawn: ''" seams to be fixing it for most people, it will be fixed in the next update.
But does this also mean that you no longer are suffering from performance issues?
@jaggy80
Thanks for the heads up, will fix it in the next update