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 Jul 1, 2014@dutchy1001
Thanks, seams that it tried to look for a zone, even if you haven't created any. Should be patched here
-
View User Profile
-
Send Message
Posted Jul 1, 2014After updating to the new version RandomLocation v4.67 Beta I get the following error.
I've deleted the folder to let it regenerate all the files but it keeps doing the same.
I'm using craftbukkit-1.7.9-R0.2.jar which is the latest beta build.
Hope you have an answer what I might be doing wrong here....
-
View User Profile
-
Send Message
Posted Jul 1, 2014@SuperRonanCraft
When you create a zone it is set to 0.0.0 in the default world. Should probably change it in the feature as it seams to be confusing quite a few :P
-
View User Profile
-
Send Message
Posted Jul 1, 2014@xGamingDudex
Ahh, ok thank you, I was very confused why when I made the zone it would go to another world when I checked it, thanks for the tip :)
-
View User Profile
-
Send Message
Posted Jul 1, 2014@SuperRonanCraft
It does got multiverse support.
First create a zone if you haven't. Then you go to the world you want the zone to be in. Then update the positions with either, "/rloc pos1", or "/rLoc radius". Now the world should be updated, then set the two locations as normal.
Remember to use the "/rLoc option <ZoneName> info" to check stuff with your zone, like the coordinates of the two positions and with world it is currently in.
I will look into the lag problems you described with non-teleport zones and range as soon as I got time ;)
-
View User Profile
-
Send Message
Posted Jun 30, 2014@xGamingDudex
Can there be Multiverse support for this plugin? I keep making a region in one world and it just places it on another world that I do not want to have the teleport region at. Not even changing it in the Zones.yml sheet help, it just resets the config. Any way this would be possible?
-
View User Profile
-
Send Message
Posted Jun 30, 2014Looks good, I needed a plugin like this.
-
View User Profile
-
Send Message
Posted Jun 30, 2014Oh wow. The NonTeleport option inside of a teleport region lags up a 4 gigabyte RAM server, I think this needs some work, the Teleporting is a pretty good though, if the region is long but narrow. I think the NonTeleport Option needs some work, it was lagging up my server hard, and when i deleted it, server literally woke back up, and never lagged until I made the region again. Is this going to be fixed int he next release?
-
View User Profile
-
Send Message
Posted Jun 29, 2014Ummm.... I can't set what world this plugin does my range in... Is that a bug?
-
View User Profile
-
Send Message
Posted Jun 28, 2014@WEB11
Thanks it should be in the next beta update which is currently under review of bukkit staff ;)
-
View User Profile
-
Send Message
Posted Jun 28, 2014A more clear example for those trying to understand the random spawn feature:
Thank you for making such an awesome plugin. The only thing missing that I would love is to be able to keep the random spawn location for each player so they don't get a new random location each respawn.
-
View User Profile
-
Send Message
Posted Jun 25, 2014I would love to be able to at least change the message it sends when it teleports them so i can encourage them to set their Home or give a little more info. I do like that you gave us a way to turn it off.
So far a flawless plugin I'm running it on a 1.6.4 cauldron server Not an issue at all.
-
View User Profile
-
Send Message
Posted Jun 24, 2014@Dysthymical
No sorry not yet, will upload any dev builds as beta versions
-
View User Profile
-
Send Message
Posted Jun 23, 2014Do you have any dev builds available for the performance issues by chance?
-
View User Profile
-
Send Message
Posted Jun 21, 2014@mentosftw
You can not define block which you don't want to spawn on, but you can define which you do want to spawn on. So use the "/rLoc option <ZoneNameZ> <ListOfBlockIds>" so it might look like this: "/rLoc option MyZone 1,2,3,35:14" which will make you only spawn on stone, grass, dirt and red wool.
-
View User Profile
-
Send Message
Posted Jun 20, 2014is there any way to make it so you wont spawn on certain blocks? mainly cloud blocks from a mod that we are using. other than that we love the plugin.
-
View User Profile
-
Send Message
Posted Jun 17, 2014@MinecraftAdmin
Already exist. Use /rPlayer <Zone> <PlayerName>. When using /rLoc, then all commands are listed at the top, also the command is listed in the commands and permission page
-
View User Profile
-
Send Message
Posted Jun 17, 2014Hi! Not sure if this has already been suggested, but a /rspawn <zone> <playername> command would be awesome to execute random spawning through console.
-
View User Profile
-
Send Message
Posted Jun 16, 2014@smallpen
I'll look into it as soon as I can. Currently got an exam tomorrow so it will have to wait until after that ;)
@Stryp
As mentioned I got an exam tomorrow but will see what I can do.
Done. :P
Lol, the feature is already added, just check the config setup and the Respawn section and you'll find "Respawn: '' ". Also the check the "IgnoreBed" and "IgnoreOtherPlugins" as they are part of the respawn feature too ;)
-
View User Profile
-
Send Message
Posted Jun 16, 2014Hi! I am working hard on a server which has no teleports or anything and I want to ask you to make a respawn hook so people who die will respawn at ANOTHER random location.
Please make this as soon as possible, will donate if you do it in 1 day. :)