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 Apr 23, 2014First I just want to say thanks for the plugin, I am grateful that you are active with it =]
I do have an issue however...Is there any reason that this:
http://pastie.org/9106528
http://pastie.org/9106524
would be tping players to caves 40 y and below, not every time-but it happens? I have also had an instance where it tp'd some one into protected grounds.
Thanks again for the plugin and keep up the good work <3
-
View User Profile
-
Send Message
Posted Apr 23, 2014Could I get an english tutorial?
-
View User Profile
-
Send Message
Posted Apr 22, 2014@cuddyier
Do you have "GroundBlocks" set to 2, as it should be numbers.
Also do you use mode=Ground?
If the above is true then do "/rloc option <ZoneName> info" and send the result and I'll take a look ;)
-
View User Profile
-
Send Message
Posted Apr 22, 2014How can I make it so that my players spawn only on grass? I have 'spawnon' set to grass but you still get spawned in caves.
-
View User Profile
-
Send Message
Posted Apr 10, 2014@Razorax
I tried to do some testing with 10 other plugins (Factions, iConomy, Pex, WorldEdit...) and looked at the difference between the reload times when I'm in game using /reload.
Without RandomLocation it took 2 seconds, with RandomLocation it took 3 seconds. But this was counted from after it was finished looking for an update. If I should count from where the server said "Reload Done" then that to with RandomLocation installed took 3 seconds.
What version of the plugin are you running? What are the specs of the server (cores, CPU, Ram, Read/Write speed to hard drive)?
Also if you could provide the config.yml and zones.txt (say using pastebin or something similar)
-
View User Profile
-
Send Message
Posted Apr 9, 2014This plugin was causing my server to run at 100% CPU for app. 17minutes each time the server was restartet.
Needless to say, having 34 plugins, it took some debugging to place the blame at this.
But, with it: 17 minutes @ 100% CPU, without it: below 1 minute.
-
View User Profile
-
Send Message
Posted Apr 4, 2014@xGamingDudex
Okay, i'll report back if it comes back
-
View User Profile
-
Send Message
Posted Apr 3, 2014@TheOnlyRealTGS
You could try this version and see if that fixed any of your problems:
http://dev.bukkit.org/bukkit-plugins/randomlocation/files/81-random-location-v4-65/
@TheAvonix
It is probably a bug in one of the earlier versions, as I do remember something similar. Older versions are not supported and therefor I can't help you in any other way then advise you to update
-
View User Profile
-
Send Message
Posted Apr 2, 2014@xGamingDudex
Sorry to take so long to respond. The world border went great, thanks.
The folders and everything are there, it's just the .txt file that stores the information. I remember seeing it once as far as how the format was, and fixed it once by manually adding a new line into it. However I reset the worlds and practically started it brand new.
We're running random location 4.56. So it seems to be that I need to update it.
-
View User Profile
-
Send Message
Posted Apr 2, 2014@xGamingDudex
That was the only thing there was. However i've found a new one: http://pastebin.com/eXHxBWQr
-
View User Profile
-
Send Message
Posted Apr 2, 2014@TheOnlyRealTGS
Could you post the whole error, as this is as helpful as someone just saying something isn't working in some part of my server...
If you could rather post something like this:
-
View User Profile
-
Send Message
Posted Apr 2, 2014Getting this warning:
02.04 03:51:29 [Server] WARN Task #2705625 for RandomLocation v4.64 generated an exception
-
View User Profile
-
Send Message
Posted Mar 31, 2014<<reply 2105288>
That does not sound like something that is related to RandomLocation. You should rather look into something that separate inventories across worlds (think multi-verse supports this). Additionally you could install a plugin which makes players able to use /home so that they could teleport to their home after logging on to the server
@cuddyier
You could rather specify an alias in the config. You could specify something like "/teleportMe" would make you spawn in zone "MySuperZone". To do this go into the config and add your aliases on the bottom of the page like this:
The alias can not contain any spaces, so if you specify "teleportMe" and use "/teleportMe now please" then it will still teleport you as the command starts with "teleportMe". Also notice that you don't use "/" in the alias config.
Do remember that aliases will try and override any default commands for other plugins. Meaning that if you specify "rSpawn" as an alias then the default "/rSpawn" command would be disabled
-
View User Profile
-
Send Message
Posted Mar 30, 2014How do you make it so that just /rspawn automatically goes to the zone called 'default'?
-
View User Profile
-
Send Message
Posted Mar 30, 2014@xGamingDudex
I want to try to make my players constantly spawn at a main spawn point on join and then enter a portal and spawn at the same location, with the same items, as when they disconnected. Do you think you could please add that? It would really help me a lot.
-
View User Profile
-
Send Message
Posted Mar 27, 2014Thanks you ! It works !
-
View User Profile
-
Send Message
Posted Mar 27, 2014@NoFuZe
You need to format it like this:
Meaning that if a player got the "RandomLocation.Permission2" then he will be teleported to ZoneName2
Also if you set "IgnoreBed" to false then it will not ignore the bed, meaning that it will check if the player got a bedspawn to teleport to, and in that case, not teleport to the zone ;)
The same goes for "IgnoreOtherPlugins", just that it checks if any other plugins have tried to modify the respawn location
-
View User Profile
-
Send Message
Posted Mar 27, 2014Hello, when a player die, he's teleported to a fix spawnpoint, i want to know how i can make, when the player die whitout a bedspawn, he's teleported to a zone
I've tried the
Respawn: Permission: Default
With the permission RandomLocation.Default, but it does'nt work, help ! :D Thanks in advance
-
View User Profile
-
Send Message
Posted Mar 26, 2014@TheAvonix
Which version are you using?
Is there any errors in the console as the plugin should save all changes into the zones.txt whenever you make a change, like setting one of the positions. Does something somehow delete the zone.txt or even the whole RandomLocation folder, as I can't think of much else which may cause the problem.
When you use the fitToWorldBorder command then it will check in which world pos1 & pos2 is in and fit it to the world border for that world NOT which world you are in when you are using the command! This means that if you just use "/rLoc create <ZoneName>" then the fitToWorldBorder command then it will fit to the world border for the main world as pos1 & pos2 is set to 0,0,0 for the default world when the zone is first created. To fix this simply do something like, create the zone, "/rLoc radius <ZoneName> 0" (sets pos1 & pos2 to your current location in what ever world you are in) and then use the fit to world border command
-
View User Profile
-
Send Message
Posted Mar 26, 2014@xGamingDudex
Love the plugin and use it for the multiverse pvp world we have on our server, but I've ran into a few problems. I use this specifically for the one world, and have two portals leading into the teleport zone. The problem is with the file, as it does not save the locations and every restart of the server I must enter the coordinates in-game again as there isn't a way for me to type it out on the locations. (I've done it once before - before resetting the world and therefore having to reset the saved locations on file)
Additionally, it would be amazing if your plugin worked with Multiverse with the SetWorldBorder command. After setting it once, it was only on the default lobby world. It still works, but it requires me to travel to two opposite corners of the map to set the pos1 and pos2 spots.