RandomPort
RandomPort
Basic Information
This plugin is a mod that allows Admins or whoever has the permissions to randomly teleport themselves or another player to a random set of coordinates. The maximum and minimum x and z values can be set in the config file, as well as whether or not the plugin uses PEX or OP's for permissions. Custom Cooldown are a feature that are set by default at 120 seconds for every player. RandomPort also adds options for RandomPorting players automatically on respawn/death, or when they use a nether portal (entering or leaving the nether). These can each be set to enabled or disabled, as well as if they occur to people with a permission or randomly. If they occur randomly, the frequency can also be set.
This plugin is great for hardcore and soft core PvP servers. Players may use RandomPort as a way to get right into the action and start building a base, with out having to wander through the wreckage of close to spawn bases. It also keeps everyone watchful and wary, as players may teleport nearby your base at any time!
PermissionsEx Nodes
- randomport.portself
- randomport.portother
- randomport.deathport
- randomport.netherport
- randomport.nocooldown
Commands
- /rp (RandomPorts the sender if they have permissions)
- /rp <player> (RandomPorts the specified player if the sender has permission)
Change Log
3.0 Major Update
- Added official support for latest craftbukkit build
- Added additional information to the readme file for ease of use and fixed issue with the readme file generating incomplete text
- Massive overhaul/rewrite of code, making the plugin significantly less memory intensive (and easier for me to update)
- Added support for issuing RandomPort commands from the console
- Added new permission to allow players to bypass cooldowns
- Randomport now places players in the center of a block, rather than on the very edge (in order to prevent players from RandomPorting and falling off a cliff)
- Fixed bug which reset player cooldowns if they logged out
- Fixed bug which would teleport players underground and suffocate them
- Fixed various other small bugs
2.0 Full Release
- Added official support for CraftBukkit 1.7.2-R0.3
- RandomPorting in the Nether is now fully functional! RandomPort with no fear of teleporting into or over lava, over the map, or out of the map!
- Multiple bug fixes
2.0 Beta - It's finally here!
- Added full support for CraftBukkit 1.4.6-R0.1
- Many many bug fixes
- Added a new permission to avoid cool downs on specific players
- Keep in mind this is a Beta. As of now most features are working as intended. However, there have been problems using Random Port in the nether (teleporting into/under blocks). Use the beta at your own risk.
1.9
- Added official support for CraftBukkit 1.3.1-R1
1.8
- Added official support for CraftBukkit 1.2.5-R1
1.7
- Added a custom cooldown option to the config
- Fixed a permissions bug
- Fixed a bug from Beta Build involving cooldown not stating proper time remaining
1.6
- Fixed minor bugs from version 1.4/1.5
- Many new additions to RandomPort
- Added a ReadMe for ease of use
1.5
- Fixed major bug from version 1.4
- If you downloaded and run your server with version 1.4, delete your old config file!
- Code cleaned up
1.4
- Updated for 1.2.3-R.02
- Added many new options to the config
- Cleaned up code/More lightweight
1.3
- Updated for all current builds support (1.1R-7 and 1.2.3-R.01)
1.2
- Fixed another bug.
1.1
- Fixed permissions bug.
1.0
- Release!
If you enjoy this plugin, please consider donating to help development!
Just so you know, if you have essentials spawn plugin on your server the essentials spawn plugin will override this plugin.
@Rhino107
Ah. This is very embarassing but yes I am confusing it with another plugin. The strange thing is, I can't find which one. I've done a search for "random teleport" and yours is in the search results but not this other one that I have commands noted for.
Does anyone recognise which plugin these commands are for?
> teleport the player to a random location> teleport another player to a random location> teleport all online player to a random location (in their world) Permissions:> to teleport yourself> to teleport other players> to teleport all playersThanks and sorry for the confusion.
@helen269
/randtpall is not a command currently in RandomPort. Are you suggesting that I put it in or are you confusing this plugin with another? :-)
While I wait for my question to be answered I'd like to add that I hope it's to the same location. If it's to different locations, and you're getting back into coding for this plugin, could you add a /randtpalltosame type command so that all players are randomly teleported to the same location? Many thanks. :-)
@joannou1 that is already built in by default. Players spawn 1 block above the ground to prevent them from accidentally getting stuck.
@djurg thanks for reporting that! I will look into it!
@thisusernameismine and @kdude63 I am looking in to adding vault support. I had an unofficial beta for this, but there were too many bugs and glitches too push out a release. I'll start working on this again soon.
@residntevl Good ideas! I will look into those soon as well.
Thanks for all the feedback! Keep it coming!
Thanks to everyone for continuing to use my plugin over the summer! As some of you may know, I took a break form programming this summer. That included programming for Bukkit. But now I'm back! All your previous ideas will soon be realized in the upcoming versions of RandomPort!
Hope to see you back on this page soon,
Rhino107 (SgtStud)
When using randtpall to teleport all players to a random location is that the same location or do they each go to a different location?
Hey, I've got some ideas for your plugin. Perhaps add a teleport warmup option which makes players stand and wait to be teleported and some permissions nodes that allow players to bypass the cooldown and warmup of porting. If you could add those two features your plugin would be even better.
Yup :-)
Please add (vault) permissions support. I'm using bPermissions (SuperPerms) :-/
And instead of random teleporting others when using /rp name, it teleports me instead...
You should add Vault support for the permissions. I know there are people that don't use PEX that want to have permissions support.
The cooldown is reset if a player disconnect and reconnect.
@darthdude92
Yeah, I agree.
Rhino, please add a way to spawn on the top of things, and have a variable for height difference. Eg. Spawn 3 blocks above top block to prevent getting stuck in blocks.
As far as my issue goes, it has been getting worse. I have tried it on normal bukkit, with the RB, and people have been getting stuck a few blocks under the surface, and sometimes even fell into the void.
Anyway you could add a Y coordinate in there? Say if I wanted them to spawn in randomly inside of a building rather than on top of it.
/randomport also works as a longer alias. This is already built in.
Do you think that you could do an alias for your /rp command? I have the road protector plugin and it has the same command.
If they reappear above the ground after a few seconds, that is just lag and is normal. However, if this is not the case, then it is most likely to do with the way that CB stores+loads chunks.
I can not guarantee that RandomPort works with anything other than the latest craftbukkit build, so if the issue does not fix itself than you will probably be stuck with it.
@Rhino107
Just a small issue, sometimes when people /rp they get teleported randomly, but under ground by 2 blocks. Any way to fix this so that they spawn ontop of the blocks? I am using CB + + by the way.
I can do that, I will add it in the next update.
Are there any other suggestions for the next update? Currently I will be adding an optional whitelist and console command support.