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.
________________________________________________________________________________________
@ChillerKraft
First you need to properly setup your zone. When you have set the zone up and configured it (you can find more zone options on the command help page), you should then try to teleport to it (/rspawn <ZoneName>). If you can teleport to it then the zone is working.
The respawn system is based upon permissions (see respawn setup in the config page). You can there setup priorities like:
Respawn: Permission.Checked.First: Zone1 Permission.Checked.Second: Zone2
When the player respawn he/she will first get checked for the permission "Permission.Checked.First". If the play got that permission then the player will get teleported to zone "Zone1". If the player do not go the permission then the player will be checked for the permission "Permission.Checked.Second" and the process continues. (You can specify what ever permission nodes you'd like and also as many as you want)
You can't directly check define where the player should respawn based upon their world, but most permission plugins got a feature to specify permissions per world. E.g. I know PermissionEx got this feature, meaning you can give a permission node to a player only if they are in the specific world. So what you would do is setup a zone per world you want players to respawn in, then only give the players the permission you define in the config to teleport to the zone that you set up for that world.
im trying to make respawning in some worlds random within a zone, but cant get it to work. i turned priority off for multiverse spawning and now its saying cant find a location to teleport to... what exactly are the steps i must considor when creating random deathrespawn locations per some worlds? respawning in the same world, but only some of my worlds using it, others respawning at spawn please help im so frustrated
@Xxspaz_addictxX
You didn't state what the problem was, but I'll assume it is the "Could not find a location" error.
Do you have any protection plugins (Factions/Grief Prevention/WorldGuard/Towny) that covers the zone? If so then you might want to disable the hook in the config.
@Carton32
Thanks for the heads up, fixed in the next update ;)
That is not the bug it wont allow me to teleport i want to teleport players on top of a stone block
Bug found : If a player try to create a sign with [RL] written on it without the permission, the sign will be unbreakable by the players. The text won't format and stay black but they can use it to teleport randomly and this create an ubreakable bloc which is a litlle disturbing when you own a faction server.
A screen shot of the result you get from "/rLoc option <ZoneName> info: http://gyazo.com/b874599eaf2287f591d5f3376b74d3ce 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.): No roof and Stone 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): in the screen shot tryed to use range and pos1/2
@Nentify
Have a look at the alias settings in the config. You can there specify aliases or shortcut commands like /wilderness which will make you teleport to zone "Wilderness_big", you specify the command and zone name to what ever you like, see the config setup page (link above) for more info
Scrapped my last comment.
Is it possible to have a default random location command? I just want one zone that fills the entire world border and the user will just type a command, such as /randomlocation /randomtp or something.
@Benroyjam
Works with every bukkit release that I've tested so far (back to 1.6)
1.7.9 supported?
@bigscary
Oh lol, totally failed on catching that :P
I can't think of much for you to do different, though if you could share some code then I'll happily look over it, though this type of discussion is probably better to have in PMs, not directly linked to the plugin, and probably not that helpful for people using the plugin either.
@xGamingDudex
Let me clarify. :) I develop a different plugin which does a similar thing. I'm troubleshooting the problem in my plugin, and I wonder about the specifics of your approach to safely teleporting entirely new first time joining players to somewhere other than the world spawn. When I do it, they fall out of the world. People tell me that your plugin doesn't have that problem.
In my case, I'm sure the destination chunk is generated and loaded. I use player.teleport() to send the player to the destination location. New players fall out of the world when I do this. Are you doing anything different?
@bigscary
Don't quite understand your post. You say you have scanned the chunk and load it before the player gets teleported, but how do you know where RandomLocation will teleport the player?
Also with the people dying are you using the latest version of RandomLocation (suggest you update if you haven't)?
And I don't quite understand what you mean by the last point of your post though.
Sorry for not being to helpful, but maybe you could try and clarify a bit on the post :P
@xGamingDudex
Brand new players are falling out and dying - it only happens on their very first server join, then never again for that player.
I know the chunk is generated and currently loaded - I don't place players until I've scanned the area in advance (this is before they even try to join), so the chunks have been generated, and I cancel the chunk unload event for the chunk I'm sending brand new players to so that it's prevented from unloading.
How do you send first time joiners to the right spot? Via player.teleport() or some other way? Are the random locations always near your server spawn point, or potentially far away? Mine are far away - at least 200 blocks from the server spawn.
@bigscary
Do they actually fall out of the world, like into the void and die? Or is it just that they fall in the void before suddenly the ground appears? If it is the last one then this is due to an old bukkit/minecraft bug where if a chunk not have been generated by a player yet then you fall for a little while and it might lag a bit on the server. If you need a quick fix, then I would suggest to install a plugin like WorldBorder which can pre-generate the world.
Hi GamingDude, cool plugin. I'm doing a similar thing (placing players not at the world spawn on first login), and I have this problem where some players fall out of the world on their first join. Can you tell me how you solved that problem?
@kemmeo
Oh, seam like I forgot to finish the sentence when writing that :P
If it is set to <LastLocation> then it will teleport you to the last location that you where teleported to by RL.
If you specify a zone name then it will try to teleport to the specified zone. Remember that the permissions/entries are checked downwards, meaning if the player got the first permission then it will just stop and use the first that the player got.
Does the Respawn <LastLocation> spawn you at your last random location? I'm curious, it wasn't explained very well on the config page.
@LegendaryAdmin
Is it only non-vanila items you are loosing? The items you loose do they reappear at any point? When you hold something placable then it sometimes looks like you placed it, and if you then only got one of it in your inv then it looks like it is gone, though it is not. This is a bukkit bug, so not much I can do about it. You haven't actually placed the item, it is only the client which think it has placed it. Right clicking again with the item will place it, or you can try and click in the slot in your inv of where the item was to update your client, and it should reappear.
If this is not the case and you actually loose the item then it must be either one of your other plugins (though I don't believe that any of the listed one should contain such a bug) or it got something todo with cauldron or one of your mods.
@LegendaryAdmin
What program did you capture that info with? Normally when monitor software says that the computer uses above 100% then it usually means that you are using more then one core. If you use say 4 cores on your server then above 100% shouldn't be strange behavior. I have seen programs on my computer reach 300-400%.
Do you notice any lag when this happens? Which version of RandomLocation is this? Don't see why it should lag more on cauldron then on a bukkit server, unless some of the mods or something like that hooks into the plugin when it loads resources.
Also, (sorry to make a second post, I just know edited posts can be missed) I am seeing much larger cpu spikes than usual on the server when we teleport. I know you try hard to optimize this and it works great on spigot... Maybe we can do something about cauldron?
I am on the bps patch 209, this is a shot of the cpu spikes when it is just me on the server after a fresh restart: http://gyazo.com/1393b50bfc3836329096f6e7a5e82c56
That's 143% spike, yowza!
xD