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 2, 2014Having issues with a rloc area... I set an area for test and even setGroundBlocks clear to test, but it says could not find a location to teleport to
-
View User Profile
-
Send Message
Posted Mar 2, 2014@soulscapex
I'll look into it, but as a quick fix you could try and remove "Respawn: ''" from the config
-
View User Profile
-
Send Message
Posted Mar 2, 2014[16:43:01] [Server thread/ERROR]: Could not pass event PlayerRespawnEvent to RandomLocation v4.61
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit.jar:git-Spigot-1325]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Spigot-1325]
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) ~[craftbukkit.jar:git-Spigot-1325]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:487) [craftbukkit.jar:git-Spigot-1325]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:472) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:469) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.PlayerList.moveToWorld(PlayerList.java:408) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:1180) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.a(SourceFile:50) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.PacketPlayInClientCommand.handle(SourceFile:8) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:700) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:562) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Spigot-1325]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1325]
Caused by: java.lang.NullPointerException
at me.xADudex.RandomLocation.Events.onRespawn(Events.java:192) ~[?:?]
at sun.reflect.GeneratedMethodAccessor503.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_51]
at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_51]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:318) ~[craftbukkit.jar:git-Spigot-1325]
... 16 more
-
View User Profile
-
Send Message
Posted Mar 2, 2014@tkx
Do you mean like when they join the server or when they respawn? If it is either one of these then it might be that both plugin is trying to set the spawn location to the player, and sometimes it is RL that succeeds. I'll see if I can at least fix it for Essentials ;)
@Marium0505
The updater fix is in the next update which is currently waiting for approval, though I don't know anything about any exceptions on startup. When you say "exception", you do mean an error or stack trace being printed, similar to http://pastebin.com/axgd7qSM?
-
View User Profile
-
Send Message
Posted Mar 1, 2014@xGamingDudex
When will that come? RL currently throws an exception every time its being loaded on the server... Un-needed errors in the log/console are confusing. Whether I know that the cause isn't too serious or not. >.<
-
View User Profile
-
Send Message
Posted Mar 1, 2014Do you know why some people spawn at spawn? I am using Essentials Spawn and Multiverse...
The spawn is on a different world, so I'm not sure why they go there once in a while.
-
View User Profile
-
Send Message
Posted Feb 28, 2014Add language support and I'll love you <3
-
View User Profile
-
Send Message
Posted Feb 27, 2014Sorry for a lack of reply lately, but I have been up in the mountains skiing and having a great time ;)
@Nickbbeezy @JoshHuttie
If you feel that you get the "Could not find a location to teleport to" message to often, then turn up "Performance.ChunksToCheck" in the config. You have to try and balance it out yourself on your server, but the higher you turn "Performance.ChunksToCheck" up the less you will receive the "Could not find a location to teleport to" message", but the plugin would give the server a higher load, meaning that it may cause more lag. If you can turn it up and don't feel that it begins to lag that much then I would defiantly recommend doing it
@Marium0505
Sorry about that, it should be fixed in the next update, but thanks for notifying ;)
@tkx I'll add it to the todo list ;)
Here is an example of how I would have created a zone in the nether:
First we need to create a zone with:
"/rLoc create NetherZone"
Then we need to specify the two locations for the zone. To to that we need to travel to the nether, then use the command:
"/rLoc radius NetherZone 1000"
The mode of the zone is by default set to "Ground". In the nether "Air" would not work as you would keep spawning on the bedrock roof. "Top" would also not work as we got a roof made of the same material that we want to spawn on. So we stick to "Ground", but still got the problem of spawning on the bedrock roof in some instances. To remove that we use the command:
"/rLoc option NetherZone setGroundBlocks 87"
This command would make players only spawn on nether rack. If you want them to spawn on other blocks as well you just add them like so:
"/rLoc option NetherZone setGroundBlocks 87,1,2,3"
This would make players spawn on nether rack, stone, grass and dirt
@diannetea @TheOnlyRealTGS
As stated above this will get fixed in the next update ;)
@LegendSmile
Thanks for the tutorial, have added it to the main page ;)
-
View User Profile
-
Send Message
Posted Feb 27, 2014i did a german tutorial on this plugin, everybody who wants to watch it: https://www.youtube.com/watch?v=_J5ULsNvrqE
-
View User Profile
-
Send Message
Posted Feb 24, 2014@diannetea
Meto xD
-
View User Profile
-
Send Message
Posted Feb 24, 2014:(
-
View User Profile
-
Send Message
Posted Feb 24, 2014Is there a way that people can't use /rspawn, but they can use the signs?
I have a death world that I want to set as the death spawn point and then users can use the signs, but I don't want them to be able to type in /rspawn
Speaking of having a Death Spawn point... I'm trying to create this in the Nether... How do I have people spawn in the nether? I tried adding netherrack to the blocks but it doesn't work... I tried air, but they spawn on top of the bedrock. I just want them to spawn in a specific area.
-
View User Profile
-
Send Message
Posted Feb 23, 2014Sometimes when people type in the command (/rspawn <name>) it says "could not find a location to teleport to" but then when they click it right after that it works.. don't know why this would be happening but if someone could help me with it it would be great
-
View User Profile
-
Send Message
Posted Feb 23, 2014I recently updated to the most recent build. For some reason was I repeatdly spammed with messages saying I needed to update... to the version I was using.. ?
I ended up removing the updater class in the plugin.
I have tried to re-install the new version three times, with the same result. So looks like you have messed up your Updater system a bit. :o
-
View User Profile
-
Send Message
Posted Feb 22, 2014Using v4.60, I'm having trouble creating zones at all now, all I get is could not find location messages no matter how I setup the zone.
Edit: Downgraded to v4.57 & it works.
-
View User Profile
-
Send Message
Posted Feb 19, 2014@tkx
Do you mean to give players permission to respawn in a random zone?
If thats what you mean then that is currently not supported but I'll add it to the todo list ;)
@wildeem
It will probably be added in the future, but currently isn't prioritized that high, as the plugin still works fine without it, and lac of demand
-
View User Profile
-
Send Message
Posted Feb 19, 2014@xGamingDudex
Thanks... is there no way to have multiple locations and have them spawn at a RANDOM one of those positions? I added all the zones to people and it always teleports to the last one..
-
View User Profile
-
Send Message
Posted Feb 18, 2014Any chance for localization options? Would love to use it on my Finnish server if I could change the "Teleported to zone" and "Could not find a location to teleport to" messages to Finnish. :)
-
View User Profile
-
Send Message
Posted Feb 17, 2014@soulscapex
I've made the location algorithm less intensive on the server, by making it a bit weaker (meaning that it won't use that much CPU as it used to by checking fewer locations)
I see now that this have become a problem for most people, and I'll see if I can fix it right away
-
View User Profile
-
Send Message
Posted Feb 17, 2014i updated the plugin to the newest version , and now the same zone that was working stopped, what has changed to make it stop , it says cant find location to spawn too.
Yet if i turn i to air it will spawn them.