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.
________________________________________________________________________________________

-
View User Profile
-
Send Message
Posted Dec 14, 2013@shadowfaxenator
No, sorry, could maybe at it though
-
View User Profile
-
Send Message
Posted Dec 14, 2013@xGamingDudex
Would be great!
I need this not to make a hub... I want my players feel like they are in vanilla randomly appearing in a wilderness (not in a claimed territory or hub)
Also does a circular area works?
-
View User Profile
-
Send Message
Posted Dec 14, 2013@shadowfaxenator
Currently that is not possible. I haven't updated the plugin for a while as I was waiting for the 1.7.2 update. I could add so that when you teleport you run a command, as I don't see that many people would need that very specific feature. But if a command was run then you could set it to /setHome or something like that and just don't give the player permission to run it normally.
-
View User Profile
-
Send Message
Posted Dec 13, 2013How is it possible to save random spawn point after the first login, so that after i die I respawn on my own point, unless i have a bed.
-
View User Profile
-
Send Message
Posted Dec 7, 2013MultiWorld Support Problems. Portals are same in everyworld....
-
View User Profile
-
Send Message
Posted Dec 5, 2013@xGamingDudex
It works for me on 1.7.2
-
View User Profile
-
Send Message
Posted Dec 2, 2013I'm able to teleport to a random location, within a set coordinate, if and only if I set the spawn location to Air. If I set it to Ground, or to specific blocks (GroundCustom) it just says "Could not find a location to teleport too".
Also, that should be "teleport to" not "teleport too".
-
View User Profile
-
Send Message
Posted Nov 4, 2013@umegonta
Well if you remove any portal zones you may have, then the player move event will almost not consume anything at all. On player move it checks if the player is inside any of the portals, but if there ain't any portals to check then nothing will happen. I also checked on world guard and saw that they had an option for disabling player move event but then you also loose the greeting and farewell messages, which basically does the same as just removing any portals zones you may have.
I am planing on updating the plugin with a total rewrite which should increase performance but I am quite busy so haven't gotten the time yet, though I will do it as soon as I get the time for it ;)
-
View User Profile
-
Send Message
Posted Nov 4, 2013Hi gaming dude thanks for providing such an awesome plugin for us. Our players and I am enjoying your plugin a lot. This is core plugin for our server.
Although, I also have a small problem of RandomLocation. I know RandomLocation uses PlayerMoveEvent to determine if players are on the defined teleport area and the event uses massive amount of resource. I am owning a server which has 100+ players online and RandomLocation gives us server freeze time to time and sometime just server hangs up.
Will you provide option to disable PlayerMoveEvent and its related function?
This is the /timings result of our server when we had 80 players online. Worldguard uses same event and they also have option not using this event because of massive resource usage.
Anyway, your plugin is simple yet best for us. Thanks for sharing the plugin!
-
View User Profile
-
Send Message
Posted Oct 31, 2013@TheOnlyRealTGS
Also have you read all the documentation:
Commands & Permissions
Config Setup
How To Create Teleport Signs
How To Create Portals
You might want to try and set it up from scratch (if it isn't to much of a job), in case that you in some point did something that you were not supposed to du
-
View User Profile
-
Send Message
Posted Oct 31, 2013@xGamingDudex
Hmm.. Not sure what it is.
-
View User Profile
-
Send Message
Posted Oct 29, 2013@xGamingDudex
Its confirmed to work on spigot
-
View User Profile
-
Send Message
Posted Oct 28, 2013@TheOnlyRealTGS
As far as I'm aware then the problem only seams to occur on you server. I have tried to recreate the bug but failed. Also as you stated it only happens under some special circumstances. Might be some strange incompatibility with another plugin on your server or you might be running a special minecraft version like spigot or another special server
-
View User Profile
-
Send Message
Posted Oct 28, 2013I restarted my server, and now the bug http://dev.bukkit.org/bukkit-plugins/randomlocation/?comment=392 exists again. I did /rReload and now it works. Seems like it broke after the restart
-
View User Profile
-
Send Message
Posted Oct 26, 2013@Erik05888
Found the error! I disabled faction support. Maybe factions was outdated =/
-
View User Profile
-
Send Message
Posted Oct 26, 2013Clean configuration. Nothing edited. First command I do which is /rSet me Zone1 100 give me an internal error
http://pastebin.com/6Cthx8V3
-
View User Profile
-
Send Message
Posted Oct 26, 2013@Erik05888
Can you teleport to the zone by command or with sign?
Do you get an error when you start/reload the server?
Normally this could happen if the zones wasn't set right, like they've been set in a world that don't exist any more or something like that. This might also happen if you set the location manually in the config.
So if you see there is an error somewhere in the log please paste it, or if you din't set the zone by command, then try that ;)
-
View User Profile
-
Send Message
Posted Oct 25, 2013Why do I keep getting this message after I go into the portal? It says that but It never teleports me! Please wait while loading location...
http://pastebin.com/PBeVxL6v http://pastebin.com/fAfw9ajh
-
View User Profile
-
Send Message
Posted Oct 25, 2013@TheOnlyRealTGS
Thats great to hear ;)
-
View User Profile
-
Send Message
Posted Oct 25, 2013@xGamingDudex
I fixed it somehow. I will make a new msg if not