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 Sep 11, 2013@tabalougas
It seams that you are using an incompatible version of factions. This might be that you are using either a newer version or an older version of the one that RandomLocation is build too. I will look into it and fix it but for now just turn faction support of in the config
-
View User Profile
-
Send Message
Posted Sep 10, 2013@xGamingDudex thats what console says when i use /rReload
-
View User Profile
-
Send Message
Posted Sep 10, 2013@tabalougas
But could you send the message that is in the console? The console is the Terminal or CMD window(Depending on the OS of the server) that you start the server from. In there it should be a block of text(more or less) that is the stack trace for the error which can tell me what have gone wrong as just printing the image of it saying "An internal error occurred..." doesn't help me.
-
View User Profile
-
Send Message
Posted Sep 10, 2013@xGamingDudex
http://tinypic.com/r/kce7bb/5
now i got the same error with the command /rSet me .
-
View User Profile
-
Send Message
Posted Sep 9, 2013@tabalougas
Could you print the stack trace or the error message int the log that you get from the /rReload command?
-
View User Profile
-
Send Message
Posted Sep 9, 2013@xGamingDudex
yes i m sure :/ And when i use the cmd "/rReload" it says : "An internal error occurred while attempting tp perform this command .
-
View User Profile
-
Send Message
Posted Sep 9, 2013@tabalougas
You sure you are using the latest version v4.28? Just tried with your setup and every think worked just fine
Also one note if you are using a skygrid world you might want to consider using "Teleporting.SpawnOn" to ground or CustomGround
-
View User Profile
-
Send Message
Posted Sep 9, 2013-
View User Profile
-
Send Message
Posted Sep 9, 2013@tabalougas
Are you sure you are using the latest version as I know that was an bug in some earlier build. Also if you are could you send the paste the config.yml and the zone.yml and also say which zone that is not working of not every zone
-
View User Profile
-
Send Message
Posted Sep 8, 2013i added the plugin on skygrid world and when i do the cmd "/rSpawn <Name>" it says "Please wait while loading location..." and nothing happens . Any Idea ?
-
View User Profile
-
Send Message
Posted Sep 6, 2013@Spiritwind51
Thanks for the suggestion, added to the todo list
-
View User Profile
-
Send Message
Posted Sep 5, 2013Everything seems to be working great for me on the latest version, however I do have a feature request :).
Having it so that it keeps their random location in memory, perhaps with a different command, like /rhome. The first time they use /rhome it sends them to a random point in the zone, then it saves that point and when they use it again it sends them back to the first random point.
Great Plugin!
-
View User Profile
-
Send Message
Posted Sep 5, 2013@DivinityCraft
Are you using the latest version? The only think that has something to say that is different in the plugin with non-ops and ops is that ops don't get cooldown, non-ops need the "RandomLocation.Use" and have the permission for the target zone if there is any custom permission. Other then that there is nothing that is different. Check if it is just after an set amount of time or a set amount of usage, also check that the permissions don't get tampered with, and maybe if no players online can use the portal see if you can get someone that hasn't been used the portal since the last reload (maybe get someone to log on and test) to see if it works for them. Also is there no message at all sent to the player? And last see if any of the other plugins may have something to to with teleporting and interrupt it in some way. You may post a list of the plugins if you are in doubt and I could look over it to see what I can find out. Also try with all other plugins disabled (maybe on a private server) to see if the problem occurs there too
-
View User Profile
-
Send Message
Posted Sep 5, 2013Sometimes the portals just stop working but only for non-ops. There are no error messages and only reloading the plugin fixes it.
-
View User Profile
-
Send Message
Posted Sep 1, 2013@jgdecimus
I also just got thinking that you could test it by do /tp <Random Coordinates> which will teleport you to a location hopefully that is not generated and compare the cpu stress to when some one uses a sign. Also if could (if the zone is not too big) try and fly a bit around to generate the chunks beforehand
-
View User Profile
-
Send Message
Posted Aug 31, 2013No, not dumb at all, thanks for pointing out the chunk generation...I didnt think of that and that makes sense.
-
View User Profile
-
Send Message
Posted Aug 31, 2013@jgdecimus
I have tested a bit and the plugin seams to use a minimum usage of cpu when you teleport. But that doesn't mean that there is thinks you as an owner can do. What seams to take the most cpu usage is the generation of new chunks, which I can't help for. You could try to make the zone smaller, since it seams that minecraft uses more cpu power when the chunk that is generated is far away then if it is near already generated chunks. You could also take the checks down in "Teleporting.Checks". Also maybe try some plugins as NoLagg to take down the chunk generation. Also if non of the above works you could set the "Teleporting.SpawnOn" to "air" which is what takes the least cpu usage though this may not be the type of spawn you want. Also you may want to turn down the amount of players that can be on the server. And last but not least upgrade your cpu. I can check and see if I can do any think about it and make it even more effective but I can't promise any think as I have already turned down the cpu usage quite a bit since v1.0
Some of the suggestions may seam a bit dumb but this is the only thinks I can think of that would help
-
View User Profile
-
Send Message
Posted Aug 30, 2013I like this plug, I really like this plug. But I notice a LOT of cpu usage everytime someone hits a sign. If multiple people hit the sign, it doesnt crash the server, but almost everyone online gets kicked with a java exception read timeout error.
-
View User Profile
-
Send Message
Posted Aug 27, 2013Very nice plugin! Thank you!
I'm waiting for a translation file for my french members :D Take your time ;)
-
View User Profile
-
Send Message
Posted Aug 25, 2013@DivinityCraft
Sorry, should be fixed here