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 Feb 1, 2014Great plugin! Its a great way to let my players spawn randomly in the pvp arena and start their fighting without having to drop from a "pvp spawn" area or anything like that. I love this plugin, and recommend using it! *Thumbs Up*
-
View User Profile
-
Send Message
Posted Jan 31, 2014Great plugin after the update :D
-
View User Profile
-
Send Message
Posted Jan 30, 20141. Yeah, only teleport if you right click :)
2. Hmm, I'll give that a shot then :)
-
View User Profile
-
Send Message
Posted Jan 30, 2014@PenguinGuy123
1: So you mean only teleport if you right click a sign?
2: It is probably that the chunk you are teleporting to hasn't been generated before, which means that the server needs to generate it all chunks around it and therefor isn't anything that the plugin can fix. Though it might be a good idea to see if you can try and load most of the chunks inside the zone, this way the server only needs to load the zones from disk. As far as I know Dynmap got this feature, to begin loading unloaded chunks. There might be other plugins offering similar features, but the point being loading and generating the chunks ;)
-
View User Profile
-
Send Message
Posted Jan 30, 2014A couple of things, 1. how do I make it only right click takes you to a RL, I've been on a server where it's like that. 2. It takes about 8-15 seconds for the world to generate when I do rl, I'm basically falling through the void up until then, on other servers it's almost instant. Any fix to either of those problems is appreciated.
-
View User Profile
-
Send Message
Posted Jan 28, 2014@DarmaMoo
Check out the config setup, under "Respawn" there you can add permission, and zone names. E.g.
If a player then got the permission "RandomLocation.RespawnPerm", then he/she will respawn in the zone "Zone1". You can add multiple permission and zone nodes as you like ;)
@EarlyReflex
I'll correct the typo ;)
-
View User Profile
-
Send Message
Posted Jan 28, 2014"Added ability to respawn in zones based on permissions" How does this work or what permission node would be used?
-
View User Profile
-
Send Message
Posted Jan 28, 2014@xGamingDudex
Those should do it. Thank you! I'll have the owner look into it. I don't have access to server files.
BTW, you should correct the message to "You don't *have* permission..."
-
View User Profile
-
Send Message
Posted Jan 28, 2014@EarlyReflex
If you give a player the permission "RandomLocation.Use" then he should be able to use portals and zones. If not, you can enable "Permissions.OpenPortals" which disables the perm check for portals. You would also need to disable "Permissions.UsePermissions" as this allows anyone to teleport to zones. People can't use portals if they can't teleport to the zone.
If you don't got permission to use a portal you get the message, "You don't got permission to use that portal"
If you don't got permission to teleport to a zone you get the message, "You don't got the permission to teleport to that zone"
-
View User Profile
-
Send Message
Posted Jan 28, 2014Well... only opped admins can use the portals. I tried pretty much everything, can't figure out that one... Pls Help!
-
View User Profile
-
Send Message
Posted Jan 28, 2014@lst96
I'll add it to the ToDo-list ;)
-
View User Profile
-
Send Message
Posted Jan 28, 2014@xGamingDudex
Could you hook into world guard to make sure it isn't a protected region?
-
View User Profile
-
Send Message
Posted Jan 28, 2014@wiedzmin137
Most plugins like McMMO, Towny and Herors don't do that much, the mostly record actions, like McMMO only looks on what the player does and then changes some data values accordingly. RL on the other hand has to scan an area for locations to teleport to, which can consume some of the CPU. To check where a player has teleported to, for instance, is easy as its just check a stored location, though having to scan an area checking if there are any dangerous blocks, and find two blocks of air to teleport to can take quite a while. That is also why you now can use ZoneCheckDelay which makes the plugin able to load locations before it actually needs it. The plugin don't actually support changing the amount of locations it checks on a zone check, but will probably add it soon. That way you can have it so that it checks regularly but with low resource consuming checks.
-
View User Profile
-
Send Message
Posted Jan 28, 2014@xGamingDudex
OK but thanks for response.
And just one question: why RL needs so high amount of CPU? Even if it's do ANYTHING it's use it more than even McMMO, Towny, Heroes.
-
View User Profile
-
Send Message
Posted Jan 27, 2014@wiedzmin137
Bungee Cord isn't something that is supported by bukkit and would be quite hard to setup.
I would suggest that you either setup a sign that the player can click on the server with random location or setup a portal in which you spawn the players in to auto teleport them to a zone
-
View User Profile
-
Send Message
Posted Jan 27, 2014Hello. Can you add server teleportation trought Bungee Cord (if this plugin haven't got it)?
-
View User Profile
-
Send Message
Posted Jan 25, 2014@xGamingDudex Thank you very much for your awesome support and your fantastic plugin!
-
View User Profile
-
Send Message
Posted Jan 23, 2014@pm61200
The invulnerability can be changed with /rLoc option ZoneName setInvulnerability <#Seconds>
As of version 4.54+ you can disable this message globally in the config under "MessageOnTeleport". Set it to false to disable it. Also check out Config Setup for more help on configuration.
-
View User Profile
-
Send Message
Posted Jan 23, 2014@xGamingDudex Sorry, I meaned the /setinvulnerability Command. How can I remove the Teleport messages?
-
View User Profile
-
Send Message
Posted Jan 21, 2014@pm61200
I've uploaded a new version fixing the "Wrong or old formatting...", but I'm not sure what you mean with spawn-protection as this plugin doesn't provide any such feature