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 1, 2014@xDizasterCYx
Well will probably be needing to look into updating it to the newest version ;) thanks
@Tomlmatt
Is the region protected in any way? If you try and disable all the hooks in the config then reload/restart the server, does that fix it? If it does then you could try enabling one by one hook until you find the plugin blocking the area (if you don't know already which one it is).
-
View User Profile
-
Send Message
Posted Aug 1, 2014"Could not find a location to teleport to."
-
View User Profile
-
Send Message
Posted Aug 1, 2014@xGamingDudex
Sorry for that i just entirely forgot it, yes i am using the latest factions version. Thanks for responding.
-
View User Profile
-
Send Message
Posted Jul 30, 2014@Robertthegoat
It is currently waiting for approval, meaning that I have uploaded it but before you can see and download it the bukkit staff has to approve it, so read the source code and so on to see that it is not malware in any form.
-
View User Profile
-
Send Message
Posted Jul 30, 2014@xGamingDudex
Hey thanks. Sorry to sound like an idiot... But, where exactly is the 4.70 update available? Or is it in the works still?
-
View User Profile
-
Send Message
Posted Jul 30, 2014@xDizasterCYx
Just to repeat what the main page is saying:
____________
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.
____________
With emphasis on the use of sites like pastebin to submit error codes.
Anyway what version of Factions are you using? Seams that the current faction version you are using is not compatible with RL. If you just want to fix it then you can disable faction support in the config.
-
View User Profile
-
Send Message
Posted Jul 30, 2014Tested on 1.7.10:
[13:41:31] [Server thread/WARN]: [RandomLocation] Task #176 for RandomLocation v4.69 Beta generated an exception java.lang.NoClassDefFoundError: com/massivecraft/mcore/ps/PS at me.xADudex.RandomLocation.Zone.checkChunk(Zone.java:434) [?:?] at me.xADudex.RandomLocation.Zone.checkChunk(Zone.java:421) [?:?] at me.xADudex.RandomLocation.Zone.getRandomChunkSnapshot(Zone.java:134) [?:?] at me.xADudex.RandomLocation.ZoneManager$1$1.run(ZoneManager.java:130) [?:?] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java:71) [spigot.jar:git-Spigot-1589] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:346) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:638) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1589] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1589] Caused by: java.lang.ClassNotFoundException: com.massivecraft.mcore.ps.PS at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_65] at java.net.URLClassLoader$1.run(Unknown Source) [?:1.7.0_65] at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_65] at java.net.URLClassLoader.findClass(Unknown Source) [?:1.7.0_65] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) [spigot.jar:git-Spigot-1589] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [spigot.jar:git-Spigot-1589] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_65] at java.lang.ClassLoader.loadClass(Unknown Source) [?:1.7.0_65] ... 11 more [13:41:32] [Netty IO #1/DEBUG]: Enabled auto read [13:41:32] [Craft Scheduler Thread - 8/INFO]: [Vault] Checking for Updates: [13:41:32] [Craft Scheduler Thread - 8/INFO]: [Vault] No new version available [13:41:36] [Netty IO #2/DEBUG]: Set listener of net.minecraft.server.v1_7_R4.NetworkManager@6a3f6a0d to net.minecraft.server.v1_7_R4.HandshakeListener@694bb1f9 [13:41:36] [Netty IO #2/DEBUG]: Enabled auto read [13:41:37] [Netty IO #2/DEBUG]: Ping: (1.4-1.5.x) from /92.222.160.58:50326 [13:41:37] [Netty IO #3/DEBUG]: Set listener of net.minecraft.server.v1_7_R4.NetworkManager@230fbd90 to net.minecraft.server.v1_7_R4.HandshakeListener@5e664aeb [13:41:37] [Netty IO #3/DEBUG]: Enabled auto read [13:41:37] [Netty IO #3/DEBUG]: Enabled auto read [13:41:37] [Netty IO #3/DEBUG]: Set listener of net.minecraft.server.v1_7_R4.NetworkManager@230fbd90 to net.minecraft.server.v1_7_R4.PacketStatusListener@42015265 [13:41:39] [Server thread/INFO]: 0 joinsign(s) loaded.[m
-
View User Profile
-
Send Message
Posted Jul 29, 2014@LegendaryAdmin
Should have been fixed in the next (v4.70) update
@Robertthegoat
It might have been fixed in the next (v4.70) update, but if it hasn't be sure to replay again ;)
-
View User Profile
-
Send Message
Posted Jul 27, 2014@xGamingDudex
Oh my, forgot to respond to this!
We are running a legit 1.7.9 server.
-
View User Profile
-
Send Message
Posted Jul 27, 2014Hey, great plugin, been really helpful! Unfortunately, its seems to be generating an exception, though it hasn't yet affected the server much.
http://pastebin.com/vfPiNXKq
Using version: v4.69 Beta on Bukkit 1.7.9
Thank you!
-
View User Profile
-
Send Message
Posted Jul 25, 2014@AsapGamerx
Are you using version v4.69 beta?
-
View User Profile
-
Send Message
Posted Jul 24, 2014Dont worry just had to remove permissions in the config file, but now i run into another problem, i had Dayz plugin installed and i couldnt get players to teleport on ground or top only air sadly even thou i made it that players cant take damage the dayz plugin kicks in anyway and gives them broken legs. anyway to fix the problem with players not being able to teleport on ground or top?
-
View User Profile
-
Send Message
Posted Jul 24, 2014none of my players have permission to teleport, i gave them the permissions in group manager but when they click the sign it says that they dont have permission. any idea what permission i have to add?
-
View User Profile
-
Send Message
Posted Jul 21, 2014@micahblalock
You can always increase the invulnerability time after teleport if it is too short. The glitching up and down is probably caused by the chunks not being loaded before. I'm currently looking into it, but as of now I would recommend you check out WorldBorder to fill in the chunks
-
View User Profile
-
Send Message
Posted Jul 21, 2014When i use Air as my mode which i will need the player glitches around when falling. They go up and down until they hit the floor. Sometimes they even die from fall damage. You should fix this.
-
View User Profile
-
Send Message
Posted Jul 15, 2014@LegendaryAdmin
Are you running a cracked server or a server at 1.7.4 or older?
-
View User Profile
-
Send Message
Posted Jul 15, 2014@xGamingDudex
This error pops up every time I load the server though. It reports that there is a single error from a different UUID each time. Are you sure we shouldn't worry about that? I mean, it just seems as though something is not working as intended... or is about to break lol xD
-
View User Profile
-
Send Message
Posted Jul 13, 2014@LegendaryAdmin
Will look into it when I get home from vacation ;)
@LegendaryAdmin
Nothing needed to be done. It had problems loading a UUID for a player, but as it states that entry was deleted.
@MisterSanglad
Glad things worked out ;)
-
View User Profile
-
Send Message
Posted Jul 13, 2014@xGamingDudex
It's okay, I found
-
View User Profile
-
Send Message
Posted Jul 13, 2014This just popped up on my console this morning:
13.07 03:58:40 [Server] INFO [03:58:40 INFO]: [RandomLocation] Loaded 0 players with 1 errors 13.07 03:58:40 [Server] INFO [03:58:40 WARN]: [RandomLocation]
> Entry Deleted! 13.07 03:58:40 [Server] INFO [03:58:40 WARN]: [RandomLocation] Error while loading player log for player: 8e21fc3d-b2fb-47dd-ba55-4f49f0d19e3bCan some one tell me how to fix this? Thank you!