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.
________________________________________________________________________________________
When i click sign, this message have show:
[RandomLocation] Region not defined in world: world
What i can do?
Can you add a feature so the cooldown works with the signs? People can use the signs as much as they want, but the command only how long I set the cooldown to.
@lord0o
It seams that your os can't handle the character "…". Have removed it in v2.61. Since bukkit uses some time to approve files here is a download Link Removed: http://www.mediafire.com/?pufn7upk1989inr . The only difference from this and v2.6 is the config file, no need to update.
@joshwenke
I could add an option to it but the coordinates would be totally random so a person could spawn 1.000.000.000.000.000.000 block away from spawn. You could just do /rSet me 100.000 at spawn and the players could pretty much spawn anywhere.
@xGamingDudex
This message cames everytime, anyhow, and anywhere (?). When I put the jar on plugin's folder, it start saying that error...i've deleted the cfg and generated a new one with this link.
I'm using multiminecraft host with TCAdmin. Thanks
Alright, a few more thoughts.
Is there a way to send a person to a random location in the whole world? I don't want the random location to be inside 2 fixed points, I want it to be everywhere in the world!! Possible?
@lord0o
Does this message come after or before you edit the config? Do you have Java 6? Are you on another os then Mac or Windows?
Hi, thank you for your hard work. I have something to say. I'm being tired with the error:
Thank you, Im waiting for your answer.
ps.: I already did the Stop, delete .jar, delete cfg, starting again, stopping again, add randomlocation.jar (lastest 2.6), deleted the "#" commentaries. and keep saying me that message.
ps2.: I'm using CraftBukkit 1.4.4 #2465
@joshwenke
Sorry for my late reply, have been away the last week. ATM I'm really busy with school and I and my friend are trying to set up a 24/7 server, I will add it to the todo list though ;) If you think that the plugin needs some thing that it don't have just keep sending me stuff to add on the todo list :)
Could you possibly make this plugin a bit more customizable? Maybe add an option in the config for a cusom command, and is there any way to modify the messages displayed to users? Also, the ability to create portals would be awesome too.
This plugin rocks, keep it up.
1111 downloads :) Thank you so much
@Joymo
Try to update to v2.4 and craftbukkit 1.3.2-R1.0 If it stills occurs post a new comment =)
This suddenly started spamming errors :/
20:39:54 [SEVERE] Exception in thread "pool-1-thread-202"
20:39:54 [SEVERE] org.apache.commons.lang.UnhandledException Plugin RandomLocation v2.3 generated an exception while executing task 1673982
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.IndexOutOfBoundsException Index: 9, Size: 9
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.set(ArrayList.java:397)
at me.xADudex.RandomLocation.RandomLocation$1.run(RandomLocation.java:192)
at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:52)
at org.bukkit.craftbukkit.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53)
... 3 more
@xGamingDudex
Ty Dude ;)
@xKoKSii
Added in 2.3 when it gets approved =)
@xKoKSii
Ok, I'll check into it :)
Its more epic than just spawn on the ground :)
@xKoKSii
Why would you what that instead of just spawn on the ground?
@Joymo
Thanks, shall fix it =)
Typo in error:
"Could not find a spot to teleprot to. Try again"
. at end, and teleport.
Can u do it so that the player spawn in mid air with 20sec of godmode?
@xGamingDudex
I tried all of this before posting the error message, excluding a restart as this is not currently feasible. It happens when /reload or /rReload. The config.yml contents get deleted. The same when it tries to generate the first config after the very first reload. I'm afraid I cannot do anymore testing as I settled for another plugin. Hope my limited information helps. I should point out that "?" (which it complains about) was no where to be found in the configs that I tried to manually load.