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.
________________________________________________________________________________________
@KevinEssence First, stop your server. Then, change the word AIR or GROUND in the zones.txt file to TOP. This will solve the problem.
Users keep spawning in caves, how do I fix this? Thank you in advance!
I'm trying to get random spawning on first join setup, i have the region create and selected, in the config I have it enabled and set to the destination. I've use /rspawn zonename to check to see if it can sucesfully random tp and it does. but for some reason when players join it says teleporting to zonename (the correct zone) but its always in the same spot.
[EDIT] //
Multiverse-core was conflicting with it, managed to remove and now it works :D
Hi,
Is there a way to disable Metrics? My console is flood with this error, even if the plugin is working:
[04:36:15] [Craft Scheduler Thread - 8/WARN]: Exception in thread "Craft Scheduler Thread - 8" [04:36:15] [Craft Scheduler Thread - 8/WARN]: org.apache.commons.lang.UnhandledException: Plugin RandomLocation v4.78 generated an exception while executing task 75 at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player; at me.xADudex.RandomLocation.MetricsLite.postPlugin(MetricsLite.java:260) at me.xADudex.RandomLocation.MetricsLite.access$3(MetricsLite.java:253) at me.xADudex.RandomLocation.MetricsLite$1.run(MetricsLite.java:147) at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
If this plugin is still unusable, try updating your spigot .jar. The latest version has this plugin working for us.
@Phreag
@Invaerne
@Penguinking4
@_Glenn13_
@SioWolf
@_Glenn13_
I have the error fixed that everyone is all stressing over... Its MetricsLite throwing it it was a simple fix since xGamingDudex said in march he was going to release the source code and the fix for this really was changing .length() to .size() YUP that was all he has to do to fix the plugin to stop the error from occurring I will not give anyone my version of the plugin but simply give you the MetricLite.class that you need so you will be modding his plugin essentially. I will explain what you need to do and how you need to do not ask me for my version of the plugin I will not provide it due to (License All Rights Reserved) but I am more than happy to provide the patch you need to fix the Error just send me a PM it has only been tested with 1.9.
@xGamingDudex
Hey,
how long you gonna think its gonna take till you release the update/ source. i really need this plugin for my server :3
@Phreag
@Penguinking4
@Invaerne
@_Glenn13_
@SioWolf
Please see the top of the front page for more information.
@stoi2m1
Currently that is not possible, maybe I'll implement something like that in the next version.
This plugin still works in 1.9. It throws an occasional exception when trying to get the players online, but I have not seen this affect any functionality of the plugin.
I needed to find a new solution, though, because it appears as if this developer may not be supporting the plugin any further (active one hour ago, but no replies to my messages or the comments here).
Please update 1.9
Please update to 1.9
Can I have a single sign which will TP the user to a random zone? Meaning more then one zone for a single sign?
Please update to 1.9 :)
The plugin uses the old org.bukkit.Server.getOnlinePlayers() which was removed in 1.9. Could you update it?
I have saves disabled in config but it still to save levels, this adds a bit of time to restarting.
@yohandu30
Goto /plugins/RandomLocation and look for the "zones.txt" file.
Open it and set the corresponding values from GROUND or AIR to TOP.
Your server MUST be stopped while editing this file or the changes will not be saved upon reboot. I don't think you need to set spawn on blocks.
@Dooley_labs
A - "Type teleport Mode ground Spawnonblocks [] "
B- "Type portal Portal destination A "
... Could not find a location to teleport to :,(
@yohandu30
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".
Set it to GROUND instead of TOP.
Est-il possible de téléporter une personne sous le sol ? Par exemple dans des cavernes pour un monde sous-terrain ??
Is it possible to teleport a person under the ground? For example in caverns for underground world ??
Merci, thanks =)
I noticed the plugin prints the default config settings to the console, though it doesn't use it.
Dunno why it does that, but it seems to be some sort of glitch.
Also with backup disabled, it continues to make a backup of playerdata at server shutdown (I hate this).
Last thing is that worldborder doesn't seem to work as intended
I enabled the hook, setup all of the zones properly, but it wouldn't FitToWorldBorder, claiming the world had no border set, though it did (I set the tp radius to the worldborder's size instead since this wouldn't work). I figure maybe the latest versions of the plugins don't cooperate? Other than those few things, everything else works as intended.