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 Feb 16, 2014@tkx
Currently there is no way to toggle between respawning in a bed and respawning at a zone, without adding/removing permissions as the player places the bed and so on, though I'll add it to the todo list ;)
say you got something like this:
If the player got the permission "RandomLocation.RespawnTest", then he/she will respawn in the zone "Zone1"
-
View User Profile
-
Send Message
Posted Feb 15, 2014If I have Respawn: Permission: Zonename
if they die and respawn, is there a way that if they have a bed they will spawn on their bed, or at least a toggle to bypass or enforce a bed?
I run a DayZ server and would like to choose..
Also, is the permission then RandomLocation.permissionZonename for the respawn to work?
-
View User Profile
-
Send Message
Posted Feb 15, 2014@EarlyReflex
Well it seams like your portals are working. When it says "Could not find a location to teleport to" then it means that it was unable to find a location inside the zone to teleport to, not that it couldn't find the zone to teleport to. Then it would have said "No destination zone set" or something like that. Try to teleport to the zone using "/rSpawn <DestinationZone>", so teleporting to the zones that you had set as destination for a portal and see if you get the same message. If you do then there is something wrong with how you configured the destination zone, and not the portal. Try using "/rLoc option <DestinationZone> info" to display the settings and positions of your zone and that they are correct to how they should be.
It might be something like that you have set the SpawnMode to "Top" and there is a roof over your zone, or that you have "GrounBlocks" set to something like "1,2,3" but no stone, grass or dirt to spawn on. It also might be pos1 and pos2 are not quite where you expected them to be.
-
View User Profile
-
Send Message
Posted Feb 14, 2014All our portals are broken. All I get is "Could not find a location to teleport to". I then created 2 test zones, a portal and a destination. I've set the coords right, the types right, set the portal destination... same problem. It simply stopped working.
Please don't tell me I have to wipe the config and start over! Creating these portals is a really tedious process...
Plugin v4.57
-
View User Profile
-
Send Message
Posted Feb 10, 2014No problem, thanks for the fix! This was the last thing halting the momentum of my public server's launch! Great plugin. :)
-
View User Profile
-
Send Message
Posted Feb 10, 2014Could you optimize it a bit?
It's pretty heavy atm: http://prntscr.com/2r938p
-
View User Profile
-
Send Message
Posted Feb 10, 2014@kami69006
I just did some testing and can't seam to recreate your problem.
I create a zone in "world" with "/rLoc create WorldZone", then I do "/rLoc pos1 WorldZone" and "/rLoc pos2 WorldZone" while still in world "world".
Then I tried entering "nether" and use "/rSpawn WorldZone" and successfully teleported cross world.
Then I went back to the nether and created a new zone with "/rLoc create NetherZone", "/rLoc pos1 NetherZone" & "/rLoc pos2 NetherZone".
I then entered world "world" and tried "/rSpawn NetherZone", which teleported me to "nether".
I then tried "/rLoc setType NetherZone portal", which made the zone a portal. Then I used "/rLoc setPortalDest NetherZone WorldZone".
When I entered the zone I successfully teleported from "nether" back to "world"
I really don't seam to be able to recreate the problem as you might see above, and therefor it's hard for me to help you. You could try and set pos1 & pos2 again, as this should set the world to what ever world you are currently in. If that doesn't help you could try sending the zone.txt and also a list of your worlds and which zones should be in which world.
@DoomGiver32
Sorry, for the late reply. It seams that it got to be the biggest bug that I somehow missed in the bug testing. Have fixed it in the new version which is under approval along with some other new features. Thanks for the heads up ;)
@BlackFing85
Don't quite understand what you mean. The plugin lets you create zones (like WorldEdit with pos1 & pos2). You can then either by command, sign or portal teleport to a random location inside that zone.
If that is what you mean with warping system then yes. If you mean a system where you just set one location which players teleport to, that doesn't change and remains static, then it could be achieved with setting pos1 & pos2 to the same location.
@Nickbbeezy
Just wanted to say that specifying data values is in the next update, which currently is under approval ;)
-
View User Profile
-
Send Message
Posted Feb 10, 2014Hi xGamingDudex
at 1st thx for your great work,
and i have the same problem as Machinemania3.
- Fix the error where creating a zone only works in the default world and won't work in any other world. (Can only make zones in the default world.)
I have tried to remake all my portal and destination.
But still not working, cross world.
Regard,
kami
-
View User Profile
-
Send Message
Posted Feb 8, 2014I can't seem to get my zones to save through a server restart. It appears they aren't being printed to the zone.txt file. I'm running MCPC+ build#231 for forge 965 on an "Attack of the B Team" server (technic modpack). If there isn't a easy fix, what's the format of zones in the zone.txt file, I only have a couple of zones to add, so if I have to do it manually, I can do that.
-
View User Profile
-
Send Message
Posted Feb 7, 2014Does this have a warp system?
-
View User Profile
-
Send Message
Posted Feb 7, 2014@xGamingDudex
Ok, thanks again, I guess I just don't see the features within the plugin. :D
-
View User Profile
-
Send Message
Posted Feb 7, 2014@Machinemania3
When using the fitWorldBorder command, use /rReload first, which should fix the problem
Don't see it as that useful with a retry command. The plugin aims to teleport you to a random location and that is what it does. If you want players to be able to teleport more times, then you could provide them with a command to teleport back to be portal, with wars or something like that. You could also give your players permissions to use the /rSpawn command to teleport to the zone by command.
You mean "/rLoc option <ZoneName> setMode Top"? This will spawn you on the highest block but under "TopBlocks" (listed in "/rLoc option <ZoneName> info). Example with SpawnMode=Top and TopBlock=[18], then you will always spawn on the highest block possible but spawn you under leaves
-
View User Profile
-
Send Message
Posted Feb 6, 2014@xGamingDudex
Thanks For Your Help! :D I guess I was just confused, but there's still one problem:
Also, maybe add these features:
-
View User Profile
-
Send Message
Posted Feb 6, 2014@Machinemania3
@Nickbbeezy
Not currently no, but I'll add it to the todo list ;)
-
View User Profile
-
Send Message
Posted Feb 5, 2014Is it possible to use sub data values for blocks in order to spawn players on different colors of wool, clay, etc?
-
View User Profile
-
Send Message
Posted Feb 4, 2014The plugins should get the following repairs: Otherwise it is fine!
-
View User Profile
-
Send Message
Posted Feb 1, 2014@Vincii
Could you print the all of the error messages that you can find when you shutdown the server. Use something like pastebin when uploading it
-
View User Profile
-
Send Message
Posted Feb 1, 2014@xGamingDudex
Hey, yes there's a error. The first on is FileNotFound ... config.yml What I can do?
-
View User Profile
-
Send Message
Posted Feb 1, 2014@Vincii
Are there any errors in the log? Might be that the plugin fails to write the zones to disk
-
View User Profile
-
Send Message
Posted Feb 1, 2014Hey, nice plugin ;)
But I've got a problem: I am able to create Portals and they work. But after i reboot the server, all zones were deleted. It happens every time! I have the latest version and Bukkit 1.7.2. Please help!