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.
________________________________________________________________________________________
@vike2015 In your config.yml file, make sure the following item is set:
The reason it will not teleport you seems to be because, as OP, you have RandomLocation.Admin.
As a normal player, you do not have access without the permission node. Either add the permission node to your default permissions group RandomLocation.Use or change your config.yml file.
Let me know if this helps.
Hi! It's seems that "ignore" function does not work, at least for Faction and WorldGuard. The hooks are enabled, and faction names/region name (only using one at a time) is set in the config, but when i setup a zone and try to be teleported in it, The plugin keep answering me "could not find a location to teleport to" unless i remove the faction/worldguard region. (Once the regions are removed the plugin work well)
Using:
Hello,I like your plug-in very much! but now,I find there is something wrong with it. I has installed it,and it's running well by OP.But when i close the OP,the system displayed the following error message: “COULD NOT FIND A LOCATION TO TELEPORT TO.” I hope you can tell me how can i solve this problem. Thank you for your help
When using commands like /rloc option survival setGroundBlocks 1,3:1,12 -> it saves the settings to files and works perfectly. After a restart all of the groundblocks are gone and players keep teleporting to caves... I don't want them to spawn in caves.
So the problem is, that command edits the zones.txt file but after restart everything is gone
Deleting a world with MultiVerse causes exception at unload:
http://pastebin.com/4gMxuLVj
WG 6.0.0.-SNAPSHOT.1591
It's just a minor issue as it still works for other worlds and will also work again if you recreate the world.
Maybe you wanna have a look at.
Cheers
Krauti
------------@JJxVortex
By default RandomLocation will check for a save location. If it does not find one it will throw an error that it could not find a save location.
I am using rLoc quite a long time now and never had an issue like that.
Anyway to stop people spawning in lave? and in ocens and stuff? biomes etc?
When an OpenComputers drone breaks a block on a KCauldron server: http://pastebin.com/VwypuzjG
Is the source code available anywhere? I'd be happy to try and fix it myself.
@xGamingDudex
That worked! Apologies, I didn't see that when I was looking lol
Thanks!
@valhallamc
Oh sorry I read "warp function" not "warmup function" lol. Well yes, you can use the move restriction options in the config. Here you can define how many seconds players must be standing still before they get teleported.
From the config page:
@xGamingDudex
I don't think you quite got what I meant. Currently, if the players are ever in any danger they can use this plugin to immediately get out of danger which we felt was cheating in a way. To avoid this, we would love for the plugin to count to a predefined number before they are able to go to a random location.
@valhallamc
If you just want a single warp location then you can just create a zone with a radius of 0 or with pos1 and pos2 at the same location. I would recommend using mode "ground" and not specify any ground blocks, that way players should always be able to teleport to the location, and as long as players can't build there then it should never be obstructed.
We love this plugin and we have been using it for years. I looked on this plugins' documentation and couldn't find anything about a warmup function - is there one? If not would you be able to add it?
Thanks -James
Ok sorry guys for being so inactive for the last couple of months. Have been busy with school, my own server network, new job and vacation. I haven't forgotten you guys yet though. So I have started on making a new version 5.0 which will be a full rewrite. It should contain all current features, but with an easy to use API and using filters on each zone. The filters can be anything from the current "modes" (top,ground,air) to "hooks" such as WorldGuard/Factions etc. I plan on allowing other plugins to create their own filters and therefor easily hook into the plugin while given the users the maximum control over which zone utilizes each filter. I have just started on it but it might take a little while given my current situation of job, school and my own network which all crave out of attention. If you guys have any special request and feature recommendation then now would be a good time too add them.
@Dysthymical
My best guess would be that RL is blocked by some other plugin like WorldGuard or Factions. You might want to disable the hooks if you have them enabled in the config.
@xbenas
I can hardly imagine that this task is causing your server lag in any substantial way. Try using the spigot timings to check what is causing the lag.
@danielfr789
This should be much simpler to implement with the usage of filters in the 5.0 version.
@MinecraftAdmin @xbenas
Well, my best guess is that RL tries to teleport players to an unloaded world or a world which has been renamed/deleted.
@NinjaSplat
Is this with the latest version? What permissions are you giving the users? Are you using a correct config format?
@yataaki
I'm unable to test/fix this atm, should hopefully not be a problem in the next version.
@yataaki
Are you using the latest version? If so then this should not occur. Please use the spigot timings to locate lag, if it points to RL as a lag source, please share your timings for me to look into it.
@GamerFoLife
Well, the plugin tells you exactly what the problem is, it is unable to find a location. This might be because there are no valid locations, e.g. all locations are blocked, or dangerous. But my best guess would be that it is blocked by another plugin like WorldGuard or Factions. Try disabling the hooks in the config if the problem still occurs.
@LegendaryAdmin
For the crash error, I'm not quite sure what is causing it. You are running an outdated version of the plugin, so I would advice you to try and update it to the latest version and see if it resolves the matter. I'm unable to check the source atm to give you are more exact answer.
@Dooleylabs
I'll look into it but I'll not be launching any bug patches before the next version release.
@MinecraftAdmin
This should be easier to implement using the new filter system described above.
@KevinEssence
If you have any errors in the log, please share them using pastebin or similar. You can always try to disable factions support in the config if they appear to be incompatible. As for the signs, could you post a bit more info on what you have tried, when it fails and so on?
@deleted_9991157
Thanks for the kind words. The easiest way to fix this would be to create two zones. One zone that you teleport players to the first time and which also gives them a kit, the second one not giving the player a kit, but has the same options making it appear to be the same.
Is there any chance that you could add a feature to limit how many times someone will get a chestkit? I would like to make it so that they only get a kit the first time they go through. Thank you.
Now that that is out of the way, this is my favorite plugin. I recommend it to every server I come across and have used it ever since I found it.
Appears that my zone file was randomly wiped, fixed sorry.
Faction support being fixed for the new version?
@QubeCraftMC
Turns out turning off world guard support sorted this out :D
@GamerFoLife
I'm having the same issue, it seems to only happen when there's a worldguard region in the area you're trying to teleport to.
We updated factions and apparently the random sign and command does not work.
When an OpenComputers drone breaks a block on a KCauldron server: http://pastebin.com/VwypuzjG