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 Aug 4, 2013Hey GamingDude, thank you for the continued support to this plugin. I recently upgraded from an earlier version and it was giving me errors when trying to randomly spawn. I started over with a fresh config and I noticed it was giving me errors when trying to import my old spawn locations. After removing the spawn locations of unloaded/removed worlds it worked again. Perhaps in a more recent version you removed a check to see if the world is actually loaded or not?
http://pastebin.com/aruUYk04
-
View User Profile
-
Send Message
Posted Aug 4, 2013@xGamingDudex
hi there can i just ask is the faction support part of this plugin now working for 2.0 or still not able to use it yet?
-
View User Profile
-
Send Message
Posted Aug 4, 2013@Plyskeen
Have fixed it in the next update, can get it here if you don't want to wait
@Bambucha91
It doesn't really help to just say that the plugin bugs, could you maybe explain what the problem is. Also check that you are running the latest version. If it is similar to @Plyskeen post then read the answer above. Also I have no problem with creating zones with the latest version of the plugin
-
View User Profile
-
Send Message
Posted Aug 3, 2013@xGamingDudex
Not all thread errors :
[WARNING] [RandomLocation] Task #42 for RandomLocation v4.24 generated an exception java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:839) at java.util.HashMap$KeyIterator.next(HashMap.java:874) at me.xADudex.RandomLocation.Timer$1.run(Timer.java:130) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:58) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:518) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
It says RandomLocation v4.24 but I use 4.25. Latest version of Bukkit/Spigot.
-
View User Profile
-
Send Message
Posted Aug 3, 2013Bugyyy I cant even make a zone :@
-
View User Profile
-
Send Message
Posted Aug 2, 2013New Version is out: v4.25!
Get it here!
-
View User Profile
-
Send Message
Posted Jul 30, 2013@xGamingDudex
say cheers to the Queen, man
-
View User Profile
-
Send Message
Posted Jul 29, 2013@linwetalion
@Primescore
I know there are bugs in the 4.21 update but v4.24 was rejected since it didn't contain a way of turning off the auto updater which only logs a download link. I am currently in London and will be home on Friday, so before that you just have to be patient, sorry :(
-
View User Profile
-
Send Message
Posted Jul 29, 2013@xGamingDudex
Yeah in Version 4.21 I changed the "Spawn On" to "Ground" and all I get is "Please, wait while loading location..." but it never teleports the player.
-
View User Profile
-
Send Message
Posted Jul 29, 2013I am using RL v 4.21 (your link to v 4.24 in comments bellow leads to 404, so...) and when I use it with my previous working config, right clicking on a RL sign returns with "Error in config.yml, Teleporting SpawnOn is not defined or incorrect". And it was set to "CustomTop".
I changed it to "Ground" and now I have the same issue as Primescore - when I use right click on the RL sign, I get the "Please, wait while loading location...." and nothing happens.
So, what are we doing wrong or where can we test your v 2.24?
-
View User Profile
-
Send Message
Posted Jul 28, 2013@Player392
Ok first you have to understand some basics. RandomLocation works by zones, you can have unlimited zones and give them custom permissions. You first have to create a zone, and then players can teleport to a random location inside that zone. To create the zone you can either use /rSet <ZoneName> <1/2>. This will set the corner 1/2 in a WorldEdit fashion for the zone. If you want to create a big zone and don't have to be that specific about where the zone ends, then I would recommend the /rSet me <ZoneName> <ANumberOfBlocks>. This will create a zone which sets pos1/2 a given blocks from you, so if the given number is 8, then it will create a cube that is 17x17x17 with you in the middle. A normal use of the command would be something like /rSet me ZoneName 100000 and that you stand in spawn or I the middle of your world. You should also notice that the plugin don't lag more just cause the zone is bigger, but that teleporting might if it needs to generate some chunks, and also that zone names is case sensitive so Zone1 and zone1 is not the same zone. Now that you have created a zone you want to teleport to it. To do that just do /rSpawn ZoneName. You can also set any zone as the default or main zone with /rSet default ZoneName. Then you can just do /rSpawn in stead. You can also go into the config.yml and scroll down to the butom where you can create aliases. You simply first add the alias like "rtp" followed by the zone name that the alias go to so say Zone1, but that is better described in the config file. Also if you want players to be able to teleport throug signs or portals scroll up the site and look under FAQ where there are some links to some other tutorials. Also hoping a video tutorial to be coming soon ;)
@ircopdd
Bit of an cryptic answer but I'm assuming that it means that every thing works, which would be great :D
@Primescore
When reporting bugs please specify a version number as there has been many updates lately. Also if you are using v4.21 you should look for some links in the comments bellow for resent updates which haven't been approved yet and which don't show up
-
View User Profile
-
Send Message
Posted Jul 27, 2013When I right click on the RL Sign it says Loading location.... Please wait... and It never TPS me.
-
View User Profile
-
Send Message
Posted Jul 26, 2013thanks fix bug
is work
-
View User Profile
-
Send Message
Posted Jul 26, 2013I am searching for the common /rtp command or plugin that most servers have but since i can't make it work im trying this plugin but i still can't make it work. Please give me a really specific and step by step help on how to setup an awesome random teleportation with only a command around the map. Thank You
-
View User Profile
-
Send Message
Posted Jul 26, 2013@olgnet
To make aliases go to the config.yml in the RandomLocation folder then scroll down and add the aliases. Also maybe you should try to look up the problem before posting for help as there is already standing in the config.yml who you add them. And as stated on the main page:
FAQ/Help
If you have any questions just ask, BUT before you ask read:
Commands & Permissions
Config Setup
How To Create Teleport Signs
How To Create Portals
Cuite hard to miss actually
@calldeath1
It has been fixed in a later version, though that hasn't come out yet. So to fix it you can grab v4.24 here
-
View User Profile
-
Send Message
Posted Jul 26, 2013just thoght i would let u know but im running 4.21 and still getting this come up :P
http://gyazo.com/c8ab015e6b2fb8c2d93c519651ab2d42
-
View User Profile
-
Send Message
Posted Jul 26, 2013I can't create alias(bukkit.yml) for command /rSpawn... Fix please
-
View User Profile
-
Send Message
Posted Jul 26, 2013@ircopdd
It is indeed a bug, should be fixed in this update, also thanks for the heads up
Did a rewrite of the plugin in v4.20 which is the cause of many fast coming updates, as people notice the small bug great features which I forgot in the rewrite ;)
-
View User Profile
-
Send Message
Posted Jul 25, 20134.23
i set sign cooldown 60sec
CoolDown:
Commands: 120
Signs: 60
but real set is 10sec
bug?
-
View User Profile
-
Send Message
Posted Jul 25, 2013Thanks for the fast bug fixes :D