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 May 3, 2014@GunfireTGM
I have posted a few steps that people should follow for when that question (as I get that a lot):
If you have problems with the plugin displaying "Cant find a location to teleport to" then post a comment with the following info:
-
View User Profile
-
Send Message
Posted May 3, 2014Iknow maby someone had this before but i cant find the answer for it.
If I try /rspawn (namearea) it keeps saing "could not find any location to teleport a"
I hope you can help. Thanks
-
View User Profile
-
Send Message
Posted May 3, 2014@Maroseliss
You could just go to where you wanted to portal and use "/rLoc pos1 pvpteleport" and the "/rLoc pos2 pvpteleport"
That will set the two corners to where you are standing when using the command, and also set the world to the one you are in
You could also use "/rLoc radius pvpteleport <NumberOfBlocks>" if that is preferred
-
View User Profile
-
Send Message
Posted May 3, 2014Thank you so much for such a great plugin, I've been using it for so long!
Can you explain what all of this means in the Zones.txt file? (mainly trying to figure out what "spawn,world," etc means because I believe it set the portal in the wrong world)
My portal isn't working although it worked before I updated (new config, zones, etc). I feel as if my portal is claiming to be in a world it is not in, and if I can understand this I can fix it manually.
Thank you so much!
-
View User Profile
-
Send Message
Posted May 3, 2014@ergenta
If you read the command help once again you would see that it say "fitWorldBorder <ZoneName>", where ZoneName is the name of the zone that you want to fit to the WorldBorder of the current world the zone is in.
You can have an infinite amount of zones per world, so therefor you will need to define which zone you want to fit to the world border. So if you currently have no zones then you will first have to create one with "/rLoc create <ZoneName>". The zone will then be set to 0,0,0, in the default world. If you then want to fit it to the WorldBorder of say world "Nether", which is not the default world, then you must first change the world for the zone you just created. To do that you simply set one of the corners of the zone as you normally would create a zone so say "/rLoc radius <ZoneName> 0".
Here is a list of commands to make it fully working without any zones predefined:
-
View User Profile
-
Send Message
Posted May 3, 2014Hello, under the command rloc it says that it's comparable with the plugin world border but it needs the name of the worldborder, border. There's a problem there. The problem is this, you can't name the world border, thus this plugin can't fill the zone.
My question to you is, am i doing it wrong? Am I missing something? Can you make it so that it fills the world boarder without the world border having a name?
Im guessing it's only going to be one per world, because it's the world boarder.
Thanks you for your time.
-
View User Profile
-
Send Message
Posted May 1, 2014@mentosftw
Sweet!
If you have any more problems then there is just ask down in the comments ;)
-
View User Profile
-
Send Message
Posted Apr 30, 2014@xGamingDudex
it seems to work now that i updated to 4.66 Thanks
-
View User Profile
-
Send Message
Posted Apr 30, 2014@mentosftw
link removed by staff, nothing big from v4.65 to v4.66, though from v4.64 to v4.65 there was more of significant update.
Also:
Do you have Griefprevention installed? Seams like it is causing the error. What version of Greifprevention are you using, if any?
-
View User Profile
-
Send Message
Posted Apr 30, 2014@xGamingDudex
where can i get 4.66? its not on this website newest here is 4.65 Thanks Trizmo www.wispcraft.net
-
View User Profile
-
Send Message
Posted Apr 30, 2014@Topburns98
@LOLniqqa
Have been fixed in the next update
@mentosftw
Do you have Griefprevention installed? Seams like it is causing the error. What version of Greifprevention are you using and also try and update Random Location to v4.66
-
View User Profile
-
Send Message
Posted Apr 29, 2014Hello I love the idea of your plugin.... if I could get it to work I have my portal and teleport zone setup and whenever i walk into the portal zone http://pastebin.com/5MzD6LP3 shows up in console. Do you know any thing about this? im running MCPC+ 1.6.4 (bukkit) on an FTB Horizons server
Thanks Dawson
-
View User Profile
-
Send Message
Posted Apr 29, 2014@Topburns98
Yeah please fix this ^-^
-
View User Profile
-
Send Message
Posted Apr 29, 2014@xGamingDudex
You message for /wild is wrong if you try and do it again "You have to wait [time] "befor" you can...... You have made a typo "Befor" should be "Before" Just it is really annoying it would be great if you could fix that :D
-
View User Profile
-
Send Message
Posted Apr 26, 2014@xGamingDudex
It does thank you =]
-
View User Profile
-
Send Message
Posted Apr 26, 2014@LegendaryAdmin
How the scan works:
Every x interval a scan is run and checking y chunks.
If it finds a location to teleport to then it adds that location to a list.
When someone tries to teleport to a zone it checks if the list is empty.
If it is not empty it will then take the oldest location and check if it is still appropriate(blocks might have been changed).
If the location is not valid then the location is removed from the list and the next location is checked.
If the list is empty then a new scan is ran.
If the scan can't find a location then it will say "Could not find a location to teleport to."
Hope that helps ;)
-
View User Profile
-
Send Message
Posted Apr 25, 2014@xGamingDudex
We do not run factions or towny, we do run world guard to protect spawn, that is all =]
Thanks Dudex <3
Ummm...I just realized something, if I have turned the scan time up to an hour, and limited the number of saved coords to 10...will the plugin still search for a new location when the 10 saved coords are used for that hour?
-
View User Profile
-
Send Message
Posted Apr 24, 2014@LegendaryAdmin
I'll see what I can do about the lag spices.
What protection plugin are you using?
I saw that you had disabled some of the hooks. If you are using factions or towny, then I suggest that you enable the hook again.
-
View User Profile
-
Send Message
Posted Apr 24, 2014@xGamingDudex
Thanks for you quick reply =]
Could you address the issue with it tping people onto protected grounds? It happened again today. basically I have a 1000sq radius that is protected for spawn, they tp out from signs and it brings them within the spawn grounds. The teleport is supposed to occur +1000 out and it is tping people withing 600 at times.
Also, I have narrowed down a lag issue to Random Location. It is spiking my CPU. I believe this is because it is constantly scanning for a location to spawn players. I have set zone checks for once an hour and the saved spawns to 10 hoping this would reduce the amount of scanning it does, but it has not changed the cpu spikes, just how often they occur. Thoughts on how to fix that?
Thank you, .LA.
-
View User Profile
-
Send Message
Posted Apr 24, 2014@WhitmanCH
If anyone would like to make one then I'll happily link to it on the front page, but I myself haven't quite found the time to make a proper tutorial for it yet ;)
@LegendaryAdmin
BTW if you didn't know then you can do "/rLoc option <ZoneName> info" for info
You can do one of the following:
The two last commands will 1, make use of a combined mode between air and ground. Allowing you to specify blocks you want to spawn on in addition to always spawning on the highest block, but with exceptions specified with TopBlocks