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.
________________________________________________________________________________________
Please update this! One of the best plugins and the only one that works right!
This plugin is broken in 1.8.3
I made a temporary plugin to do the rPlayer command when a player dies.
After some checking, it appears that even the respawn feature of RandomLocation isn't working. I'm going to recompile it with highest death event priority and see if that sorts anything.
@TheOnlyRealTGS
Well first of all they need to be using flat files as their storage (e.g. not SQL). Then they need to save the file on shutdown (as that is when most servers crash from memory leaks). Now it isn't strictly true that you always have to overwrite the file to update it, e.g. adding data to a file (e.g. log files) is quite simple without having to overwrite the file, though in the zones.txt we might need to update all the info meaning that we will need to sometimes delete stuff and sometime write stuff. If you fail to write while in the middle of the file then you will just end up with a corrupt file (it isn't deleted or empty, but still a corrupt file is in most cases as useless as a deleted one).
@xGamingDudex
No worries about the absence :) Okay I understand that, but how come other plugins don't do this? I have only seen a few out of the hundreds plugins I've tested
I just checked and the rSpawn and rPlayer commands work fine for teleporting to the region. There shouldn't be any interference from other plugins but I will test again with only rloc. (Not sure if I did that already).
Sorry for my absence guys, have been crazy busy with studies and other projects, will try and dedicate a bit more time to the project in the future
@TheOnlyRealTGS
The file isn't exactly deleted in the way you are might be thinking of. When you save a file (unless you are using some complex saving, e.g. the way huge databases save stuff) then you will have to overwrite the file to save to it. If you edit only one line of a text document with a text editor and save it then the text editor will in most cases have to write the whole file again, not only updating the line. When the plugin crashes due to a memory leak then it might still try and save the file but it don't have enough ram to remember what to write to it, so it starts to write an empty file, leaving you with your zones deleted. It is due to such errors that the plugin contains a backup feature.
@Nentify
When looking at the stack trace then it seams that it crashes before it even gets to RL. It tries to pass a BlockBreakEvent to RL but it crashes before it even gets passed to the plugin, e.g. there is nothing wrong with RL and there is nothing that RL can do about it. It is most certainly due to an error in Cauldron. Does the error still percist or has it been resolved (asking as it now is some time since you reported the error and that maybe updating Cauldron have fixed it)
@Wolfy262
Is there any error logs in the log? Do you have any plugins that are connected in any way to RL or maybe commandblocks/schedulers which are set to execute certain commands related to RL every now and then? If you set the ground blocks then restart the server, are they then immediately reset? Are you sure that the server got permission to write to all the files in the /plugins/RandomLocation folder (on some system this can happen if the wrong user creates the file, and you should see errors when the plugin tries to save to the file)? Is any thing else reset? Like if you create a new zone, is that too reset after a little while?
@godgodgodgo
You might have plugins that prevents people to teleport to that area/world. Can you teleport to other zones from that portal? Can you teleport manually to the zone using commands or signs?
@Mcraftpete
You can change the cooldown of types (portal, signs or commands) but not per zone. To see how to setup change the cooldowns look over at the config page.
@Isaacey
Sorry but I just don't have the time to make an in-depth video tutorial, at least not as of now. Maybe sometime in the future, but if anyone else would care to make one then I would happily add them to the front page above.
When you say "more than one dest for one portal?" do you mean how can you link a portal to multiple zones? If so then I'm afraid that it is currently not possible. You can however setup one big zone to teleport to and then mark of the areas which you don't want players to teleport to with non-teleport zones. I know this might not be optimal but it's the only solution I can think of.
@godgodgodgo
I might make it open source in the future, might help out the plugin development too a little.
@Konsider
I can add it to the todo list.
Can you make it so there can be different cooldowns for different portals please?
Thoughts on making this open-source? Really want to get these issues fixed.
Hello , I'm having trouble with this plugin. The tutorial video didn't help at all as it was in German -_- could you at least put some effort into making a English version?
Besides that , how can you set more than one dest for one portal?
Hi, How do I change the cooldown , I can see it in config but cant be sure of layout ? Or if there is a simple command to add it to a certain zone ?
I'm having a problem where the plugin just isn't teleporting players at all when they enter a portal.
When the portal destination is not set I get the "Portal destination not set" message but then when the destination is set to the region that spans my WorldBorder area no messages or errors show at all and people aren't teleported.
Hey,
I set the Ground blocks for a region to certain blocks, but after the server resets or a couple of hours, the option for the ground blocks clears, meaning that users can teleport onto any block.
This is being spammed on my console w/ Cauldron - http://pastebin.com/YvmZDbBW
@xGamingDudex
Thanks for the reply. I have enough ram, but it's still bad practice to delete the file in case of a crash :)
@Mcraftpete
Are you running the latest version? My best guess would be that you either have done something wrong with your permission setup in any way, or that some other plugin is interfering with the sign creating. Try removing all other plugins and check if it works, if it does try adding back one by one plugin until you find the plugin that is creating the bug.
@ChaseThis
Please see the FAQ section for reporting bugs, especially the part where it says to explicitly use sites like pastebin.com. Also do copy the entire error, there are lines missing from your comment.
Hi, I have a small and possible nothing at all but every time I look at the console, I see a error when RandomLocation trys to save the world. Now I don't know if this is major but it does spam the console not the chat. Just wondering if this error would cause some trobble in the end.
[14:33:11 INFO]: ====================== Backup Manager =====================
[14:33:11 INFO]: [RandomLocation] Saving zones... [14:33:11 INFO]: [RandomLocation] Starting backup... [14:33:11 INFO]: [RandomLocation] Successfully saved zones and made backup [14:33:11 INFO]: ===============================================================
[14:33:14 WARN]: java.io.FileNotFoundException: http://website.shadowblox.com/pl ugins/modreqversion.txt [14:33:14 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputS tream0(Unknown Source) [14:33:14 WARN]: at sun.net.www.protocol.http.HttpURLConnection.getInputS tream(Unknown Source) [14:33:14 WARN]: at modreq.VersionChecker.getVersion(VersionChecker.java: 43) [14:33:14 WARN]: at modreq.VersionChecker.run(VersionChecker.java:78) [14:33:14 WARN]: at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.ru n(CraftTask.java:71) [14:33:14 WARN]: at org.bukkit.craftbukkit.v1_7_R4.scheduler.CraftSchedul er.mainThreadHeartbeat(CraftScheduler.java:350) [14:33:14 WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.v(Minecr aftServer.java:641) [14:33:14 WARN]: at net.minecraft.server.v1_7_R4.DedicatedServer.v(Dedica tedServer.java:289) [14:33:14 WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.u(Minecr aftServer.java:584) [14:33:14 WARN]: at net.minecraft.server.v1_7_R4.MinecraftServer.run(Mine craftServer.java:490) [14:33:14 WARN]: at net.minecraft.server.v1_7_R4.ThreadServerApplication. run(SourceFile:628) [14:33:14 INFO]: Failed
Hi, I have this plugin installed on 1 server and works fine and is a great plugin. I installed this on a second server and again seemed to be working fine until I did the signs. I am definitely doing it right as its the same as the other , I used same area name and can /rplayer Map meeee :P and it works fine , the sign I put [rl] on top line Map on line 2 and it just doesn't register it creates a plain sign , any ideas why this is the case ? I have made myself op during this to ensure its not perms , I checked essentials and signs appear to be on so really unsure why its not working.
Sorry everyone for so much late inactivity but have been insanely busy the last two months. Will see if I can get some more time to get into the problems that have emerged since then
@KevinEssence
Will look into it, I do suspect that there might be some hidden (more rare) bugs related to 1.8, will look into it.
@Dillzzzzz
Well, it might be a bit advanced and complicated, but that is because there are so many different people and different servers that use this plugin for such different things that I need to keep it highly customizable, which in return results in it sometimes might come of as a bit advanced and confusing. If you put some time of to get to know the plugin, then you will probably find that it is quite intuitive and logical and that you can start creating very complex and advanced systems with it as it has a high support for compatibility and such with other plugins.
@Maxamilion126
Thanks ;)
@godgodgodgo
Thanks, will look into it
@Konsider
The size of the zone should have no impact on performance, this goes for all the different zone types (teleport zones, non-teleport zones and portals)
@Nentify
It is probably a bug in cauldron, I suggest contacting the cauldron devs and have them look into it.
@tilen1232
Thanks
It is most certainly possible to customize to only teleport players above ground. You can for instance use "/rloc option setGroundBlocks 2" (2 is the id of grass, you can also specify more blocks, e.g. 2,35:14,12 which would make them able to spawn only on grass, sand and red wool) which will make it so that players can only spawn on grass (I suspect that this might not work on 1.8+). You could also use "/rloc option mode top" which would make it so that they spawn on the highest block possible which is inside the region. You can then specify blocks that they should spawn under with "/rloc option setTopBlocks 18". By default this value is already 18 (leaves) so that they don't spawn on top of trees when mode is set to top.
@DarkFoxDie
If your normal nether portals are spawning on top of the nether then it most probably is some other plugin interfering. If you on the other hand mean that players are being teleported on top of the nether by RandomLocation then you could use a similar approach that I suggested in the reply above. Use "/rLoc option <ZoneName> setGroundBlocks 87" which would only spawn them on nether rack. You could also just edit the zone locations to not go above 127. Use "/rLoc option <ZoneName> info" to get the two locations of the zone (pos1 and pos2). Then use "/rLoc pos1 x1,0,z1" and "/rLoc pos2 x2,127,z2" where x1,z1 is the x and z value from the old pos1 and x2 and z2 being the values from pos2.
@TheOnlyRealTGS
If your server runs out of ram then anything can happen, it is very hard to prevent anything from going wrong when the server don't got any ram to fix any of the problems. Live servers should never run out of ram, as you should never reload a live server due to memory leak in bukkit and plugins and you should also restart your servers once every few hours to handle memory leaks that build up over time. This is just some general notes on how to run a minecraft server and not only related to RandomLocation. I will however see if I can do anything to minimize the chance of a zones.txt deletion. If you do find that this happens every now and then, then I suggest you set your backup timer for random location to something lower to minimize data loss if the server should crash again.
@Konsider
No sorry, currently there is only "RandomLocation.Use" and "Location.Admin" (the admin perm includes a cooldown bypass). If you don't want cooldowns at all then you can set the all to 0 in the config. Will see if I can add some perms in the future though ;)
Is there a permission node to override the cooldown? I can't see it.