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.
________________________________________________________________________________________
@Njels123
Post: 911
___________
@Njels123:
I didn't add that permission page just for fun...
If you don't got a permission plugin installed (which I don't see why you wouldn't be using unless this is on a say "mini-game server" and part of a network), then you can enable "Permissions.OpenPortals" in the config (see config page above for more info)
___________
Yes I did I have permissionsex
@Njels123
Did you reload/restart the server?
@mb1552
I don't know how you got the plugin working without knowing this, but to get it working you set up zones much like you would create selections in world edit. Then you can teleport players inside this section, meaning if you want players to be able to teleport to a random location between -5000,0,-5000 and 5000,255,5000 then you would set up the zones with exactly those coordinates. And to make everything supper simple you then you just need to go to spawn (0,0,0 in this hypothetical case) and use "/rLoc radius <ZoneName> 5000" which will create a zone with radius of 5000 blocks.
@xGamingDudex can you add a feature to where you can set a max tp chord? Ex if I wanted to make it so you can only go out 5000 blocks from 0,0 I could set that up
Is set it too false and it wont help
@Njels123
I didn't add that permission page just for fun...
If you don't got a permission plugin installed (which I don't see why you wouldn't be using unless this is on a say "mini-game server" and part of a network), then you can enable "Permissions.OpenPortals" in the config (see config page above for more info)
It works fine now!
How can everyone use the portal, only OPs can use it now
It works fine now!
:D
@BMutsaards
@Njels123
@yataaki
@ChillerKraft
Have updated the Factions and WorldGuard hooks and better plugin incompatibility detection in the next version, if you got v4.74 installed and auto download enabled (enabled by default) then it will automatically download and install when it gets approved by the bukkit staff ;)
RandomLocation stopped working with the new factions/massivecore version 2.7.1
Portals dont do anything and when I try /rspawn I get this exception:
[17:07:48 WARN]: [RandomLocation] Task #59 for RandomLocation v4.74 generated an exception java.lang.NoClassDefFoundError: com/massivecraft/factions/entity/BoardColls at me.xADudex.RandomLocation.Zone.checkChunk(Zone.java:434) [?:?] at me.xADudex.RandomLocation.Zone.checkChunk(Zone.java:421) [?:?] at me.xADudex.RandomLocation.Zone.getRandomChunkSnapshot(Zone.java:134) [?:?] at me.xADudex.RandomLocation.Zone.teleport(Zone.java:477) [?:?] at me.xADudex.RandomLocation.ZoneManager.teleport(ZoneManager.java:378) [?:?] at me.xADudex.RandomLocation.ZoneManager.teleportPlayer(ZoneManager.java :329) [?:?] at me.xADudex.RandomLocation.PortalManager$1.run(PortalManager.java:29) [?:?] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java :71) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHea rtbeat(CraftScheduler.java:350) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:6 41) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2 89) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5 84) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java :490) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6 28) [custom.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
@Njels123
In your config set "Hooks.UseWorldGuardSupport" to "false" (without the quotes ")
@yataaki
Thanks for the report anyway, I will probably still be looking into it
Sorry I don't get it my Englisch is not so good :/ What do you mean with disable the hook?
@xGamingDudex
Nevermind, I downgraded faction/massivecore because the last update is totally messed up.
@Njels123
Did you even read what I wrote? If so then why did you uninstall the WorldGuard plugin? All you need to do is either downgrade to v5.x or disable the hook in the random location config (see config setup page)
@yataaki
I'll look into it, in the mean time you will just have to disable the Faction hook in the config, or downgrade until I get it patched.
I unistalled Wordguard and it works fine now, But I want the area protected?
@xGamingDudex
I have this error message with the latest faction:
http://pastebin.com/nzTYcdUF
@CorruptedCopper
What do you mean with "I have added RandomLocation.Use to the Essentials permissions"? Essentials in it self is not a permission management plugin like GroupManager or PEX. If you mean that you have added the permissions to the "player-commands" section then you should know that this is not adding the permissions to the player. It is only a section to add which essentials commands players should get access to if you do not have a permission system, this means that you can NOT add permissions that other plugins are using as it isn't permissions you are adding. If you absolutely don't want to install a permission plugin then just see the permission section in the config help section above to allow everyone to use the signs. Though I would recommend you to install a permission plugin like Pex or GroupManager as I can't imagine any reason not to.
@ChillerKraft
It seams you are using an unsupported version of WorldGuard. Please disable the WorldGuard hook in the config or downgrade to a supported version. WorldGuard v6+ is not supported yet.
@Njels123
Do you have any protection plugins installed like WorldGuard or similar? If so try to disable the hooks in the config for the plugins you got installed.
Hi,
When I make an area it works fine but, when I make a big area it doesn't work anymmore? Can someone please help me :)
http://pastebin.com/xusqaTHX once i finish making the zone and type /rspawn (zonename) it says this in console
I am having some trouble using the signs to randomly teleport someone. I have added RandomLocation.Use to the Essentials permissions (Not using GroupManager) but nobody can right click the sign and be teleported. It says:
"You don't got permission to teleport to that zone"
How do I fix this?