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 Jul 7, 2013Would be nice if you could add some more permission-nodes; I have 2 rSpawn-areas, but don't want 1 of my groups to access both areas.
Group 1: only access rSpawn 1 Group 2: access both rSpawn 1 and rSpawn 2
Today it's not possible (I think?), cause the RandomTeleport.Use is allowing them to access both. I'm thinking that nodes could be used like RandomTeleport.Use for access to the command itself and RandomTeleport.Use.areaname (for example RandomTeleport.Use.1 if it's named 1).
-
View User Profile
-
Send Message
Posted Jul 2, 2013@1sasafras1
Well if you would just read the feature list on the top of the page you would see it says "Multi-World support"....
Also every zone is defined to a world so says you have a zone named Zone1 and it is in your default world then when a player teleports to the zone Zone1 then that player would be spawned in the default world.
-
View User Profile
-
Send Message
Posted Jul 2, 2013Does it support multiple worlds
Idea: configurable what worlds players are allowed to teleport too when they do the command or click on the sign
-
View User Profile
-
Send Message
Posted Jul 2, 2013@KenWilliams
Glad you like it, and just happy for helping you out ;)
-
View User Profile
-
Send Message
Posted Jul 2, 2013@xGamingDudex
Ok thank you! :) It looks like exactly what I am looking for.
-
View User Profile
-
Send Message
Posted Jul 2, 2013@KenWilliams
That is correct. If you want it to be exactly from x1 & z1 5000 and x2 & z2 -5000 then go and do it in the config, also set the y1: 0, and y2: 255. If it don't have to be so precise I would recommend going to spawn and do "/rSet me <ZoneName> 5000". And yes again this will allows players to spawn with X between x1 & x2, same Y and Z.
-
View User Profile
-
Send Message
Posted Jul 1, 2013Hi. I must really be missing something... How do I define a zone?
Here is what I want to use this for. When a player comes to spawn, after reading the rules, the player can click a sign that teleports them to a random location within 5000 of spawn. It can be negative or positive, but it cant be farther than 5000 away from spawn.
I tried to set up your plugin, but when I issued the command or clicked a sign, it said that the zone was not yet defined.
Please help. :) Thanks
EDIT: Ok wow.. totally missed the page where it shows me this.. lol sorry. So do I understand this correctly? I can set one point at x:5000 z:5000 and x:-5000 z:-5000, and this will create a zone where the player has the possibility of being teleported anywhere in there? So a possible spot they could be teleported to would be x:4200 z:-3700? Again, sorry for failing to see that one part... :D
-
View User Profile
-
Send Message
Posted Jun 27, 2013@euro1988
@Hvarr
Think I have fixed it try this version: http://dev.bukkit.org/bukkit-plugins/randomlocation/files/46-random-location-v-4-14/
-
View User Profile
-
Send Message
Posted Jun 27, 2013@Hvarr
Same.
-
View User Profile
-
Send Message
Posted Jun 24, 2013I keep getting this error all the time:
-
View User Profile
-
Send Message
Posted Jun 24, 2013@rtcabooservb
Glad it worked ;)
-
View User Profile
-
Send Message
Posted Jun 24, 2013@xGamingDudex
Seems to have worked. However the config option is;
-
View User Profile
-
Send Message
Posted Jun 24, 2013@Thor89
Try changing "Teleporting.CustomTopBlocks" to just [18], as this is the blocks the player will spawn under.
-
View User Profile
-
Send Message
Posted Jun 24, 2013@rtcabooservb
If it doesn't work try this version http://dev.bukkit.org/bukkit-plugins/randomlocation/files/45-random-location-v-4-13/ coming just needs approval but go in the config and if it isn't manually added add "Other.UseFactionsSupport" and set if to false if you want to use Factions v2 or higher
-
View User Profile
-
Send Message
Posted Jun 24, 2013@rtcabooservb
Have you tried with older versions, like those that is published not waiting for approval?
-
View User Profile
-
Send Message
Posted Jun 23, 2013@xGamingDudex
I do. It broke with the most recent update, v2.0.
http://dev.bukkit.org/bukkit-plugins/factions/files/54-factions-2-0-0-mcore-6-4-0/
-
View User Profile
-
Send Message
Posted Jun 23, 2013@xGamingDudex
I meant to say /rSpawn The /rSpawn sends me only to snow biomes and mooshroom island. And that is very annoying as that is just 1/5th of my world. I have no idea why it happens. I have never ended up on grass with no snow on top, sand or gravel, even if I add them to my config.
Also, looking forward to circle zones. :)
-
View User Profile
-
Send Message
Posted Jun 23, 2013@Thor89
The /rtp is not a RandomLocation command... Other than that every thing seams just fine
@rtcabooservb
Do you have factions installed? If so which version? If you have an old faction version try updating it
-
View User Profile
-
Send Message
Posted Jun 23, 2013@xGamingDudex
-
View User Profile
-
Send Message
Posted Jun 22, 2013All my attempts on doing /rtp sends me to snow biomes only, with a few exeptions where I get tp'd near or inside the spawn.
My two corners are set correct and I get tp'd to all over the map as i want, but still I get sent to grass with snow on top only. Or some rare occurrences on top pf mycelium.
zones.yml http://pastebin.com/20BMiZmP
config.yml http://pastebin.com/cNhhAw97
What is wrong?