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 Jun 14, 2014Hello ~ I use craftbukkit 1.7.9 and Randomlocation v4.66 ! I found the bug that player click randomlocation sign and plugin will teleport him to random location . But next time player click sign , it will say "You have to wait 0s before you can use that sign again " . Please check these issue , thx !!
-
View User Profile
-
Send Message
Posted Jun 9, 2014@NinjaSplat
Thank you, I'm glad that you find it fitting your needs ;)
-
View User Profile
-
Send Message
Posted Jun 9, 2014Very good plugin, it works very well on my server. Thank you! :)
-
View User Profile
-
Send Message
Posted Jun 8, 2014I have read this over and over, but i cant seem to find anything with only being able to do this every "X" Amount of time, I see the cooldown, but that seems to do nothing on the my server. Help?
EDIT: Disregard, It seems to be working fine now. Thank you. :)
-
View User Profile
-
Send Message
Posted Jun 8, 2014@MrJellycakeGaming
The chunk preloading is on my todo list, though I see now that it currently is mission on the todo list above.
The plugin already support this. When you create a zone you are just setting two locations just like world edit, and the lowest location will set the lowest y value. I do realize that it might be a bit hard to do if you are using the radius command so what I would suggest you do instead is to set the mode of the zone to top, making players only spawning on the highest possible position. Simply do "/rLoc option <ZoneName> mode top". Players will now only spawn on the highest block possible, though it will spawn you under leaves. You can add more block ids which you want to spawn underneath by using "/rLoc option <ZoneName> setTopBlocks BlockID,BlockID,BlockID,BlockIDData". Specify as many block ids as you like separated by "," and no space. Also if you want to spawn under certain blocks with specific data values, example 35:14 = red wool then use "iddata", so in this case 3514. Also you can specify as many blocks as you like. If you would like to specify what blocks players shall spawn on, like only spawn on grass, and you still want the mode top feature then you should set the mode to combined. This allows you to specify blocks which you want to spawn on using "/rLoc option <ZoneName> setGroundBlocks id,id...". To enable this just do "/rLoc option <ZoneName> mode combined".
@xtheudis
I'll look into it ;)
-
View User Profile
-
Send Message
Posted Jun 8, 2014Hi, this is a awesome plugin! Just what I was looking for! I just have two things I would like to have added which are: Chunk preloader (I don't know if this is in or not but the chunks have to load when I do the command) and Setting possible tp spots above a certain y level (To prevent players from spawning in caves)
-
View User Profile
-
Send Message
Posted Jun 8, 2014Hello, I would put a large cooldown between uses. But for now the cooldown is not saved between each reboot. Could you make the cooldown of each player is not reset on reboot? thank you
-
View User Profile
-
Send Message
Posted Jun 7, 2014@godgodgodgo
In the config you can set "Permissions.OpenPortals" to true, which will allow any one to use portals without needing any permissions.
Don't quite know what you mean with "since death location is broken". If you are referring to the respawn feature that allows you to teleport players when they respawn then you are mistaken. The respawn feature is still working, but you should look into the config for more information on how to set it up. It also might be other plugins which are interfering and if so then set "IgnoreOtherPlugins" to true as well after you have set up the respawn teleporting.
-
View User Profile
-
Send Message
Posted Jun 6, 2014Could you add a specific permission for the rspawn command? I want players to be able to use portals (since death locations is broken) but not be able to respawn with a command from anywhere with the command.
Thanks
-
View User Profile
-
Send Message
Posted Jun 5, 2014@kemmeo
The plugin currently support teleporting to a random location within a zone on respawn (same as /rSpawn <ZoneName> on respawn). Guess you mean teleporting to the location a player was last teleported to within a RandomLocation zone.
-
View User Profile
-
Send Message
Posted Jun 5, 2014@xGamingDudex
Thank you so much :) By Respawn I mean on death, Currently players respawn at the World spawn, not the random loaction.
-
View User Profile
-
Send Message
Posted Jun 5, 2014@EmberC
Glad to hear that things worked out ;)
@mattataki
In the logs you sent me there is nothing saying that RandomLocation was involved in your crash both in the CrashReport and the ConsoleOutput. Only thing I can see is that the plugin is installed. In the console output in seams that the crash happens when the server tried to generate a new random chunk, and the negative random value is passed from the server in some of the biome generation.
Sorry for not being of any more help, but this seams to either be some plugin corrupting the chunk generation (which RandomLocation got nothing to do with) or that you are using a version of CraftBukkit or another server software that contain a bug.
-
View User Profile
-
Send Message
Posted Jun 4, 2014Can't use the plugin. There must be some conflict. Isolated the problem to the plugin. Craftbukkit seems to call to java.util.Random.nextInt() which is being passed a negative value. But then, changed to a couple of crafbukkit builds even down to 1.7.2, no luck. Here Crash report: http://pastebin.com/v9hrJ9aW Here console output: http://pastebin.com/ynJQLRcx Also, it uses loads of my server resources. And I suggest you change your support ticket system instead of comments, it's more convenient to search if the problem we encounter has been reported yet or not. It's also much more convenient and all. Thank you.
-
View User Profile
-
Send Message
Posted Jun 4, 2014@xGamingDudex
Thank you for having patience with me. It was a misplaced wg zone.
-
View User Profile
-
Send Message
Posted Jun 4, 2014@EmberC
Is there any other type of protection setup for this area, in particular towny, worldborder, griefprevention or world guard. If so then you will need to disable the hook for that particular plugin or just remove the region from the given plugin that covers this area.
-
View User Profile
-
Send Message
Posted Jun 4, 2014Okay, that makes sense but I'm still running into issues. I have no issue creating a zone in wilderness and using /rSpawn to get to to it. The area I was having issues with was in the warzone area so that is now unclaimed and is wilderness once again. However, I still can't get a zone to work there.
http://i.imgur.com/uc4PHW9.png The white block just mark the square area that I'm setting as the teleport zone. When using /rSpawn to get there it fails every time. I've removed all blocks in the are and coming across the same issue. I'm wondering if RandomLocation isn't seeing the land as properly unclaimed or if there is another issue?
I've even disabled faction support and I still can't teleport to it. I've even copied the area surrounding that zone and pasted it elsewhere and it works. Just not in that one spot.
-
View User Profile
-
Send Message
Posted Jun 3, 2014@EmberC
RandomLocation will not teleport you to any type of faction zone. Meaning that you will not get teleported into safe zones, war zones or faction zones. You will either need to move your zone outside the safe zone, or go in the config and disable faction support.
-
View User Profile
-
Send Message
Posted Jun 3, 2014Running Spigot #1487
I'm wondering if the issue has to do with factions. The portal is in a safezone and the are I'm teleporting to is also a safezone. Once I make the radius big enough in the destination it will teleport you to the wilderness away from the warzone and safezone. If it is in the safe zone it can't find the location.
-
View User Profile
-
Send Message
Posted Jun 3, 2014@kemmeo
I'll add it to the todo list ;)
@SXRWahrheit
I'll add it to the todo list ;)
-
View User Profile
-
Send Message
Posted Jun 3, 2014@xGamingDudex
I mean that WHEN they go to the nether, be it via a multiverse-portal, their nether portal, an NPC, my own command, whatever - they then get dropped in randomly. That's what I'm trying to do. It would be cool if you could add a listener for world switching.