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.
________________________________________________________________________________________
The permissions do not work for me. I am using the latest version and I have tried RandomLocation.use - Does not let them jump through portals to get to the arena, I have tried a custom one too which did not work either, they cannot use portals, also I set the portals thing (whatever) in the config to false, they still can;t use portals to go to an arena please can you contact me on skype for quick messaging. Skype - shadowedremix
EDIT: It only lets OP's teleport through portals
@Templari0n
RandomLocation should not make the client lag, as it is purely stuff done backend on the mc-server except for when the players are teleported (which on not too good machines can sometimes lag). Though this only applies for vanilla clients, as your players most probably have installed client side mods (as you say you use cauldron, I assume this is the case) then anything can happen. It really depends on how the client mods work and in what effect they are dependent on the server being lag-free. The server could begin lagging with RL installed (though RL is heavily optimized and should not make the server lag much more then what it does usually) but on vanilla clients this would be noticeable mostly as just lag, e.g. block lag or pvp lag, not frame-drops which you are describing.
@Krauti2
Sorry, I though I had updated the config pages, but will do it now.
The options are lists, so you will add when with [arg1, arg2, arg3...] or with - (dashes)
E.g:
Hi there,
I have trouble using the IgnoreWorldGuardRegions feature.
My config is
When I try to randomly teleport (using rPlayer) to a predefined area (using rLoc pos1/2) inside of the WorldGuard region "pvp" it keeps telling me "Could not find a location to teleport to".
This config setting is independent from the worlds name, is that correct?
When this will work how to seperate multiple region names?
Thanks for reading.
Best regards
Krauti
@xGamingDudex
The next has happened a couple of times. Reproducing requires about 2-3 hours of gaming: Yesterday evening server caused clients crashing and serious stuttering. I shutdown server and started it again this afternoon to try it alone. Soon after I entered the game the stuttering started and my client crashed.
I disabled RandomLocations and started server again. After logging in everything was running smoothly. I re-enabled RandomLocations and all is fine for now but I expect it to start lagging again after some hours of gameplay.
Other plugins are: bPermissions, BuffedFire, FirstJoinPlus, HungerPlusPlus, Landslide, LifeMC, LongerTime, PwnBuckets, Vault and RespawnItems.
Thanks for the Spiggot timings suggestion! I got lots of violations in Connection Handler Time, some in World Save Time and ChunkIOTick Time. Nothing was pointing exactly on any specific mod or plugin.
I am starting to believe that lagging issues have nothing to do with RandomLocations config files but the plugin itself and/or compatibility issues with the others. What seems to be sure (worked twice already) is that disabling and re-enabling RandomLocations plugin fixes the lagging.
If you have any ideas what I should do next or test, I am willing to try out or share those crash logs and timing reports with you.
@Templari0n
MaxLocations should only impact memory usage, nothing else. Also try checking out spigot timings if you can and haven't, to detect which plugins slows down your server.
@xGamingDudex
Ok. It could be MaxLocations or more probably I am wrong altogether. Oh well, I keep looking for performance issues somewhere else. Thanks for quick responses!
@Templari0n
As I said, the only option which actually change anything of the plugin is the "Performance.MaxLocationsStoredPerZone". The other options are not even read or checked by the plugin, unless you are not using the latest version. And if you are not using the latest version, then I would recommend you to update it doe to there constantly being implemented features which increase performance of the plugin.
@xGamingDudex
After some more testing, I have come to conclusion that it's easier for my server if I set "ChunksToCheck" and other performance values to 0. As much as I like the smoothness of respawning in a location that is already loaded it seems to stress my server other times too much.
@chris_61
Did the suggestion fix the issue for you? If not what version of the plugin are you using, and could you also give some info about potential plugins which might interfere and also what version of RL you are using.
@Templari0n
Well, most of the performance stuff is unused as of later versions. The only value that actually have an effect is the "Performance.MaxLocationsStoredPerZone". Random location scans the zones every X tick and every time it finds a valid location it stores it until someone wants to teleport to that zone. The max locations defines how many locations can be stored for one zone.
As for the backup feature; if enabled then it will backup your zones.txt, playersLog.txt and your config.yml every X tick (defined with "Backup.BackupInterval"). "Backup.MaxBackups" is the amount of zip files to be stored. RL will delete the oldest backup files when the limit is reached. I must say that the backup feature is very lightweight, so enable it shouldn't impact performance at all, as long as the interval ticks isn't to low (wouldn't recommend having it below 5min).
You say "but still something is wrong". Might I ask what is wrong? Also have you checked that RL is the cause of what you call wrong?
@lst96
Have you tried to disable essentials first spawn feature?
Checkout http://ess.khhq.net/cfg/ line 720
Essentials over ride the first join feature of this plugin, is there anyway around this?
Some details about "Performance" in Config Setup page would be greatly appreciated.
I am encountering strange frame drops in the server. CPU & Memory usage are allright (30-60%) but still something is wrong. At the moment I am using this:
My Backups are "false". Partly, because I don't even know what it exactly does and I am afraid of it increasing performance cost if enabled.
I am using RandomLocations to create a big random respawn area where players spawn whenever they die or first join. At the moment the zone details are:
Minecraft 1.7.10, Server is cauldron-1.7.10-1.1236.05.212
[UPDATE 1]: I still don't know what BackgroundChecks do but increasing it from 0 to 5000 didn't do any harm. Need to continue testing but that may have solved some issues.
[UPDATE 2]: Frame drops still occur. Also, "IgnoreBed" doesn't seem to affect on anything. No matter if true or false.
Thank you for the update! Can now start on the migration to 1.8x. You're awesome!
Using Latest spigot build =/
@chris_61
It should never spawn you on top of dangerous blocks, like fire, lava, water, cactus etc. Are you using a custom server software e.g. something else then craftbukkit/spigot?
You can always set the mode to top (only spawn you on highest block, like the surface) and you can also specify blocks you want it to allow you to spawn on, e.g. only spawn on grass.
@Templari0n
Glad you liked it ;)
Will add the auto kit equip to the to-do list ;)
Neat! This plugin even has the respawn kit possibility (setKit and setUseKit). It was easy to use, thanks for descriptive menu structure!
Could it be configured so that starting kit is given directly to player inventory instead of a chest? In my survival server, the chest is somewhat difficult to craft and I would not like to give a free chest for every respawn ;-)
Hi great plugin by the way. I have a few questions. I'm trying to set-up your plugin on my server but multiple times it's landed me in a cave and spawned me on lava. Anyway to fix that?
Thanks, Chris.
I have been using Random Spawn plugin until I realized it doesn't work well with LifeMC plugin (ignores player ban action when respawning). I was wondering if this plugin could be used instead since it's newer and probably has better compatibility with other plugins.
I already created a zone and added that in in the "Respawn:"-list but I seemed to respawn at the world respawn point instead of random spot in the newly created zone.
EDIT: I got it. I had to add Respawn: "RespawnArea: RespawnArea" instead of having only "RespawnArea". That one kinda confused me but got it working by trial and error. Thanks for the great plugin!
PS. This does work well with LifeMC!
PPS. And this plugin works also on Cauldron server. FYI.
@chinafriend
If you want players to get teleported to one single location, like a warp plugin, then just set the two points of the zone to the same location (/rLoc radius <ZoneName> 0) and hook it up to a portal.
I hope this plugin can modify teleport to a certen coordinate,so i can throw away other gate plugins! :)
@ugmetuf
@Gh0ztbuster
Update for v4.77 for 1.8.3 is out!
The file will probably be approved within a few hours or days (depending on the speed of the bukkit staff). In the mean time here is the download link for those who want some early access downloads:
http://dev.bukkit.org/bukkit-plugins/randomlocation/files/93-random-location-v4-77/
@godgodgodgo
I couldn't recreate your problems with the respawning and portals, both seams at least to be working fine in v4.77