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 May 20, 2014Checked and there are no errors at all.
Here are my configs: http://paste2.org/vje7hKIb http://paste2.org/YvmyVAjN
-
View User Profile
-
Send Message
Posted May 20, 2014@xGamingDudex
I just tried that and it didn't work unfortunately. I'll check for any errors.
-
View User Profile
-
Send Message
Posted May 19, 2014@YiveMe
Thanks for the heads up, will fix it in the next update ;)
@godgodgodgo
Have you tried to set "IgnoreOtherPlugins" to true?
-
View User Profile
-
Send Message
Posted May 19, 2014For some reason players aren't being randomly teleported when they die with no bed or anything, they seem to be going to the world spawn. I've currently got essentials respawn priority set to "lowest" but I'll see if removing essentials spawn fixes this.
I'm currently running the server on MCPC-Plus http://ci.md-5.net/job/MCPC-Plus/75/
-
View User Profile
-
Send Message
Posted May 17, 2014Just a small bug.
exists*
-
View User Profile
-
Send Message
Posted May 14, 2014@Dysthymical
I'm currently looking into optimizing the plugin so stay tuned ;)
You might want to look into the performance section if you haven't and see if by tweaking it that it might improve the performance of the plugin.
@Jase1091
First create a zone with:
/rLoc create ZoneName
Then set the two locations for the zone. So specify two locations that players should be able to spawn in between. The selection is made in a similar fashion as World Edit, if that is more familiar. You can use the following commands to specify the two locations:
/rLoc pos1 ZoneName (Pos1 from your locations)
/rLoc pos2 ZoneName
/rLoc radius ZoneName <BlockRadius> - Sets pos 1 & pos 2 <BlockRadius> blocks away from you in every direction
/rLoc pos1/2 ZoneName x y z - Specify pos1 or pos2 by x y z values.
After you have specified the locations of your zone then you can look into the "/rLoc option" to customize the zone and teleport algorithm.
If you want to setup a portal just create a new zone, following the steps above where pos1 and pos2 specify the area that if a player is within then players will be teleport. Then you have to make the zone a portal, by default it is a teleport zone (meaning you can teleport to it). There are tree types of zones: Teleport/tp, Portal/p & Non-Teleport/ntp. Non teleport is a zone that you will never spawn in (say around spawn so that players don't spawn inside the spawn area.
To set the zone type simply type:
/rLoc setType PortalZoneName p
Then specify the zone that you want players to teleport to after entering the portal:
/rLoc setPortalDest PortalZoneName ZoneYouWantToTeleportTo
Hope that it might have been in some help ;)
-
View User Profile
-
Send Message
Posted May 14, 2014Im really confused :/ I want someone to walk through a portal in my spawn and get spawned randomly around the map :/ Say within 600kx600k D: The tutorial confuses me loads D:
-
View User Profile
-
Send Message
Posted May 14, 2014My TPS drops when I have this plugin on :/ When it's disabled I am at perfect 20. When it's enabled I get anywhere between 17 and 20 each minute. It fluctuates rapidly. Anyone else having this issue? http://pastebin.com/9RH56Res
-
View User Profile
-
Send Message
Posted May 14, 2014@cuddyier
You can specify blocks you want players to spawn on, often simpler then blacklisting them.
You can specify blocks by id or id and data, and you can specify as many as you like. This for example would make you spawn on a few colors of wool plus grass:
/rLoc option <ZoneName> 35:3,35:8,35:7,2
If you set the mode to ground then you should be able to spawn normally in any level, and without it checking that you always spawns on the highest block:
/rLoc option <ZoneName> mode ground
When setting the two locations for your zone then you can try and not set the y value above the value you want players to spawn on. If it is so that it is only a specific area that you don't want players to spawn in then you can try and setup a non-teleport zone. Creating a normal zone and after specifying the corners then use:
/rLoc setType <ZoneName> NonTeleport
-
View User Profile
-
Send Message
Posted May 13, 2014Can you add the ability to blacklist certain blocks to spawn on? I want to use this plugin for skywars and would also need the ability to make them spawn in the middle of the world rather than the top or bottom.
-
View User Profile
-
Send Message
Posted May 13, 2014Thanks for 20,000 downloads guys, really appreciate it! ;)
Hope to get a new update out in not to long with some smaller tweaks and improvements ;)
-
View User Profile
-
Send Message
Posted May 11, 2014@RJbeley
Not quite sure what you are meaning. If you want your zone to be in a specific world then simply go to that world and set the locations inside that location with /rLoc pos1 <ZoneName> and /rLoc pos2 <ZoneName>. If you want the zone to act as a warp then you can simply just set pos1 and pos2 at the same location
@LOLniqqa
I'll look into it ;)
-
View User Profile
-
Send Message
Posted May 11, 2014Would it also be possible to add an option to make it so players can't spawn within 100 blocks of claimed land?
At the moment it seems people are finding some faction claims very close by.
-
View User Profile
-
Send Message
Posted May 11, 2014Please add a option to spawn on a specific world /rloc option (locationmane) (worldname) THANKS!
-
View User Profile
-
Send Message
Posted May 4, 2014@KirillN
I will look further in to it ;)
@agog27
Glad it worked out, and I probably won't release another update just to fix the typos, but should be fixed whenever a new update is necessary ;)
The plugin will most probably be compatible with 1.8, but if it isn't then I'll update it ;)
-
View User Profile
-
Send Message
Posted May 4, 2014@xGamingDudex
That worked. I /reloaded the server and added UseWorldGuardSupport: false into the config. Just FYI, that option didn't exist. I had to manually type "UseWorldGuardSupport." And yes, I am using v4.66
Just another quick thing, there are a few spelling mistakes, nothing too major. For example, when you do /rloc radius, there's a mistake in the description. Also just another small suggestion; I would replace 'setInvulnerability' 'setGod' because it's a lot shorter to type, and people are lazy :)
Overall great plugin. Will it work for 1.8 or are you going to release an update for it? Thanks!
-agog27
-
View User Profile
-
Send Message
Posted May 4, 2014@xGamingDudex
Thanks for reply!
So could you implement such functionality of WorldBorder as creation chunks in tp-zone in addition to ZoneCheck? It may be optional. Configuring like (per whole plugin):
... or per zone.
Or only once with the comand (for example: /rLoc createChunks <Zone>).
I don't want to use WorldBorder. =)
And is it possible for you to make human-readable "zones.txt"? =) Smth like "spawn.yml" in Essentials for example.
-
View User Profile
-
Send Message
Posted May 4, 2014@agog27
The IgnoreOtherPlugins is just for when players respawn (check if other plugins tries to alter the respawn location), but just to check again is "Hooks. UseWorldGuardSupport" set to "false", and you have restarted/reloaded the server after you changed the option (/rReload currently is a little buggy, not updating every option in the config)? Also are you using v4.66?
@KirillN
It is a known problem and is caused by slow chunk loading. When the player gets teleported to a chunk which has never been loaded before then the chunk has to generate it for the player. This might take a little while depending on how fast the server is, but I know that even top notch servers might have problems with this. I am currently looking into the problem and trying to fix it, but the bukkit api doesn't provide any methods to preload the chunks before the player gets teleported.
-
View User Profile
-
Send Message
Posted May 4, 2014Thanks for ya plugin! But I have a problem:
Every time I use p-zone to teleport to a random location of tp-zone:
tp-zone is 10km*10km*100m
PC: i5-3570, total 16 GB RAM, server has 5GB RAM, client has 5 GB RAM, both are on the same SSD. server view-distance = 10, client view-distance = 12, I only player on the server, the world 3 days since the creation. I never had such problems before installing this plugin.
Thanks in advance!
-
View User Profile
-
Send Message
Posted May 3, 2014Hey I had that "Cant find a location to teleport to" error. It seems to be caused by world guard. It worked perfectly when the arena had no protection, but as soon as I put a world guard region around it, I got the error. The arena is mostly made up of quartz and stone brick. I even disabled all the hooks in the config, and set IgnoreOtherPlugins to true. I don't just get this error on this arena either. It happens with every other arena that has a world guard region around it.
Picture of arena: http://imgur.com/LFruUld,Pug0L7G#1
Picture of info: http://imgur.com/LFruUld,Pug0L7G#0