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 Mar 25, 2014@Marium0505
Currently as you can see, the ability to edit the output messages isn't top priority, but I'll see if I can add it as soon as I find the time for it ;)
@Lobomite
You say this happens when you use a portal or sign, but what about when you use command? Also you should check your settings again, as that is probably what is causing the error, as v4.64 has been tested around efficiency and I haven't found anything which should cause large lag spices as long as it isn't a very weak system. If you want you could even send a picture of the zone info in addition to basic info about the zone, like which type of environment it is in, and how it is supposed to work out.
@jprules10
I should probably look into setting up some kind of donation setup, but thanks anyway ;)
@godgodgodgo
Thanks for the advice, I'll see what I can find out about the pre-generation of chunks and if I find anything I'll see if I can add it to the plugin ;)
@kyllingman2
Not 100% sure what you mean. Are you asking if the plugin contains any aSync processes at all, then yes. Are you asking if the checking of location algorithm is aSync then no. If you are having some errors or something like that, which you think is a result of an aSync task then you should post them.
-
View User Profile
-
Send Message
Posted Mar 25, 2014Is this aSync?
-
View User Profile
-
Send Message
Posted Mar 23, 2014@xGamingDudex
Hey, maybe contact the developer of WorldBorder since one of the main features of his plugin is to generate chunks. Thanks for adding the extra respawn options.
-
View User Profile
-
Send Message
Posted Mar 23, 2014I really love this plugin you did a veeerrryyy good job. maybe when il get donations for my server i donate for this plugin. KEEP UP THE GOOD WORK
-
View User Profile
-
Send Message
Posted Mar 23, 2014Hey, whenever i try to use a portal/sign i get "Could not find a location to teleport to" and then a huge lag spike occurs (no error or what so ever though). Im sure i've set everything right, it worked in the older version.
-
View User Profile
-
Send Message
Posted Mar 22, 2014Yes, my appologies. I did mean WorldGuard. And okay I shall try that when I get home. Thanks for the help! (:
-
View User Profile
-
Send Message
Posted Mar 22, 2014@xGamingDudex
When do you plan to add this?
-
View User Profile
-
Send Message
Posted Mar 22, 2014@Mre30
Already supported and enabled by default ;)
-
View User Profile
-
Send Message
Posted Mar 22, 2014@xGamingDudex
how about griefprevention support? So players are not warped to a gp protection?
-
View User Profile
-
Send Message
Posted Mar 22, 2014@Marium0505
Well got the output feature on the ToDo list, but will see what I can do ;)
@aceconklin
RandomLocation has nothing to do with WorldEdit so it has to be something else preventing it from finding a location. For instance you could check that your pos 1 & 2 is set correctly with "/rLoc option <ZoneName> info"
If you rather mean WorldGuard instead of WorldEdit then that changes everything. To let people spawn inside a WorldGuard region you need to go into the config and set "Hooks. UseWorldGuardSupport" to false
-
View User Profile
-
Send Message
Posted Mar 22, 2014Hello! I'm currently having trouble with worldedit and this plugin. Whenever I have a region in the same location as rloc it says "Could not find a location to teleport to".
Please help! (:
-
View User Profile
-
Send Message
Posted Mar 21, 2014@xGamingDudex
Great, awesome! Thanks a lot!
One more thing: Can you make it possible to change the messages the plugin outputs. The message when doing /rspawn to give an example That would be awesome! :)
-
View User Profile
-
Send Message
Posted Mar 21, 2014v4.64 Download
@godgodgodgo
Have added a look for other plugins option on respawn under "IgnoreOtherPlugins". If false then it will check if any other plugins have tried to change the respawn location and if they have then it won't teleport them. If you turn this to true but leave "IgnoreBed" option false, and they got a faction spawn, then the plugin will find the bed spawn, cancel the teleport, but factions will recognize it and teleport them to the faction base.
I have tried to implement some chunk generation and keeping the chunks in memory but it doesn't seam to be able to generate new chunks, even though the API states that the chunks should be generated. As far as I know this is either a bug in the bukkit API or a feature which isn't properly implemented. Will just have to wait and see if it gets fixed, but if I find any solutions which solves the problem, then I'll upload a new version ;)
@Marium0505
Have added it in v4.64 update ;)
-
View User Profile
-
Send Message
Posted Mar 20, 2014Can you eventually make it possible to set the positions without being there? Like a "/rLoc setpos[1|2] [zone] [x] [y] [z]" command?
-
View User Profile
-
Send Message
Posted Mar 20, 2014@xGamingDudex
Ah, I didn't spot that. My current setup works quite well anyway. If I were to use the respawn config option then could I change the respawn priority? I want people to be able to spawn at their faction homes if they have one and then if they don't have one then they are tp'd to a random location. I'll test this in a local server to see which gets priority.
Another thing that would be useful would be if you could generate the chunks of the locations that are queued up because currently, every time a new player joins the server freezes for a couple of seconds while the chunks generate.
Thanks for the awesome plugin :)
-
View User Profile
-
Send Message
Posted Mar 19, 2014@Marium0505
Why don't you use either "/rLoc pos1 <ZoneName>" and "/rLoc pos2 <ZoneName>"? You could also use "/rLoc radius <ZoneName> <BlockRadius>".
If you for instance want to set two specific locations then I would suggest doing:
"/tp <SpecificX> <SpecificY> <SpecificZ>" and then "/rLoc pos1 <ZoneName>" and the same for pos2.
-
View User Profile
-
Send Message
Posted Mar 18, 2014@jozefmery
You can:
a) type "/rLoc option <ZoneName> setGroundBlocks 2", this will make players only spawn on grass (which there are virtually nothing of in caves)
b) type "/rLoc option <ZoneName> mode top" this will make players unable to spawn under any blocks, meaning they will always spawn on the highest block possible, which is within the zone. But with the exemption of "TopBlocks" which you can see when typing "/rLoc option <ZoneName> info". By default these are set to "18", which is the ID for leaves, meaning that the player will spawn on the highest block, that is under leaves.
c) type "/rLoc option <ZoneName> mode combined" & "/rLoc option <ZoneName> setGroundBlocks 2". With mode "combined" you basically are able to define which blocks players can spawn on and which blocks they can spawn under. Meaning a combination between a) and b)
@British89
I guess you saw the "TeleportOnFirstJoin" section in the config?
-
View User Profile
-
Send Message
Posted Mar 17, 2014Hi is there a way so players never spawn in caves, sometimes walls ?
-
View User Profile
-
Send Message
Posted Mar 17, 2014Hi, Is it possible for players to automatically be spawned in a random location on join? "new players"
Thanks.
EDIT: Never mind ignore this, Sorry.
-
View User Profile
-
Send Message
Posted Mar 17, 2014@godgodgodgo
You could use the "Respawn" section in the config instead of a portal at spawn, but I guess ideally you would like it to set the spawn point after teleporting. I'll see if I can figure something out which may help you ;)