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.
________________________________________________________________________________________
Could you potentially update to support FactionsUUID? Right now it fails to hook into FactionsUUID
https://www.spigotmc.org/resources/factionsuuid.1035/
So I've read through the entire page, but cannot find anything about disabling the backup feature completely. I work for a large server community and, while restarting the server, Random Location causes lag while it saves player data. We do not want to use this feature, but cannot disable it. In the config, it has the backup option, but it's been set to "false", so we do not know what else we should do. If someone could help us out, that'd be great.
MC version: spigot 1.8.3
Random Location version: 4.78
Server IP: mc.aliacraft.net
So I am running on version 4.15 (1.5.2 voltz server and there is a conflict with mcore with later versions) and I am Getting this error:
http://hastebin.com/jiwufajoho.avrasm
This is my config:
http://hastebin.com/ulexarezef.coffee
I can assume that it has to do with taking such a long time to scan for land, but with 1.5.2's rediculouly large oceans, I don' t know how else to configure this.
Lastly, since it is Voltz, there is a moon with block ID 3347:5. I can't use meta data in the config, how do I set that block to spawn on?
Any help would be great =]
Location error. Server: CraftBukkit 1.8.4 | Plugin: RandomLocation v4.78 for 1.8. http://imgur.com/fNBHym6
The plugin is slow as hell, it lags during 5mn whenever I want to reload it or delete a zone...
The plugin still do backups if I disable it in config, I don't want backups because it makes the stops and starts of the server last forever, please fix it
@xbenas
that is because you use multiverse portals or out of date multiverse core! if you use portals delete it. it is not working anymore try warpportals
There is a small bug: I set cooldowns for commands and signs, but players can bypass the cooldowns. Any way to fix this?
Error, does not sometimes work:
Hi. I am receiving this error, followed by lag spikes.
Any ideas? http://puu.sh/hTdnv/fd7f299907.png
Add support for FactionsUUID by drtshock please
Can you include an option how often we want to check if the player is inside a portal? Currently the task is set to run every tick, I want to make it every 20 ticks. Thanks.
Can't make any random locations anymore. Plugin doesn't work on my server after deleting old locations and trying to make new ones. I've tried deleting everything even the folder and the plugin and restarting from scratch. Will there be a new update? I'm forced to use warps signs now
Players have access to create a random tp sign and use it :o
Does faction support work for factions 2.7.5?
All default settings, just declared pos1 and pos2. Also, a small bug, if you register pos2 with coordinates as an input it says saved as pos1 even though it saves to pos2.
Here's my problem:
@xbenas
Thanks for the report, will fix it later today.
@Op42
There isn't one strictly for /rSpawn (assume that is what you mean with /randomtp), but there are several ways to fix this. You can either specify a custom permission to all the zones that you want donors to be able to teleport to. If you just want donors to be able to teleport using the command then you can just set the portals and signs to open in the config and give the donors the "RandomLocation.Use" permission.
Config:
____________________________
Permissions:
# If false then it will allow anyone to use /rSpawn <ZoneName>
UsePermissions: true
# If false then it will allow anyone to use RandomLocation signs
OpenSigns: false
# If false then it will allow anyone to use RandomLocation portals
OpenPortals: false
____________________________
This way, only players with the "RandomLocation.Use" permission will be able to use the /rSpawn <ZoneName> command, but all players are able to use the signs and portals.
I am trying to allow my players to use /randomtp as a rank up, but cannot seem to find the permission node for this. Is there one?
BUG
When I start the server I see this:
However, my config is:
Also, the backups work regardless of my backups enabled true/false setting.
My server:
@Mini_Remix
1) Just to be sure you are using "RandomLocation.Use" and not "RandomLocation.use", right? Many permission management plugins are case sensitive.
2) What message does the players who enter the teleport get (the ones that can not teleport)?
3) Can the players teleport to the same zone using commands (/rSpawn <PortalDestination>) or signs?