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!
Awesome plugin :).. I use this with the worldguards teleport-on-suffocation feature :)
Why does it only work with pex D:
Guys i would like to say smth. I changed my plugin from group manager to PEX and it works but I found out a cool thing. You can use server sign plugin with random port.
Hey is it possible to make it so that I don't have to use PEX cuz i have group manager and I don't really like PEX
Can you make it run-able with command blocks? Whenever i try it, it does not work, and it's because the code does not recognize the command block as a player, so when you try to do rp @p (Player) it doesn't work. I tried this even with the console, and I have found out that it does not recognize the command block as a player, so can you fix this?
Greetings. I seem to be having a permissions error. I'm running Spigot-473 (MC: 1.4.7), McMyAdmin 2.3.2.8, GroupManager 2.9.6 as maintained by the Essentials team. Essentials 2.9.6.
In game, I am able to /rp or /randomport with OP. I cannot without.
In my default permissions group I have given "randomport.portself".
/manglistp shows that the default group 'Everyone' has randomport.portself.
/manucheckp adminplox randomport.portself shows Permission Node: randomport.portself and SuperPerms reports Node: true
my config file for randomport: http://pastebin.com/mQSFhZnK
Any help would be greatly appreciated. Thank you.
EDIT: Please disregard, I see now that you only support PEX. That's quite interesting. The bukkit team, specifically mbax, is pretty anti PEX. I however am not, and have used it in the past. I don't currently.. That's another story. Thank you anyway, I'll look for an alternative plugin.
@DJTomek
In the config under max and min, you can choose the range. Generally speaking you will want the max to be positive, and the min to be negative. Both the X and Z ranges are configurable.
@benneht
Yes, it automatically spawns you above hills. You can also configure what blocks you cannot spawn on. By default all water and lava and bedrock are disabled.
@arrexel
Yes this can happen occasionally. I have tried sorting this out, and I think I have most of it fixed. I am still working on completely solving it, and I have some ideas.
How I can set radius at least 2 000 blocks from spawn on any direction? I know how to setup for example 2 000 - 5 000 block, but not to negative coordinates too...
Once in a while, /RP ends up killing players in the void. I've experienced it myself.
Fixable?
If you use this, will it prevent you from spawning underground, inside of hills, on lava, on water, etc?
@helen269
Hi,
If you have Essentials plugin you can do this on the EssentialsEco part of config.yml:
which make the cost 100 each time rp is used
hope this helps :D
Minecraft Crash ReportI let you down. Sorry :(
Time: 8/31/12 6:52 AM
Description: Exception in server tick loop
java.lang.IllegalArgumentException: n must be positive
at java.util.Random.nextInt(Random.java:300)
at net.minecraft.server.EnchantmentManager.a(SourceFile:103)
at net.minecraft.server.EntityHuman.c(EntityHuman.java:607)
at net.minecraft.server.EntityHuman.d(EntityHuman.java:669)
at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:611)
at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595)
at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:349)
at net.minecraft.server.EntityArrow.h_(EntityArrow.java:222)
at net.minecraft.server.World.entityJoinedWorld(World.java:1239)
at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:498)
at net.minecraft.server.World.playerJoinedWorld(World.java:1221)
at net.minecraft.server.World.tickEntities(World.java:1119)
at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:565)
at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212)
at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
Fix it please. This plugin crashed my sever.
I dunno what is this for. randomport.deathport
@Rhino107
Yes, I've seen that done in other mods where if you want to in the config you can specify which item you either have to have in your hand (hold a feather to fly for example) or spend (you lose an item or a heart or a level to do the action). Having such an item requirement or a cost is always optional in these things.
@helen269
That seems like a doable idea. It would have to be in the config as an option, as I'm sure most people wouldn't want that. I could also add the option for the block ID of the item required. And I could also add a permission that lets you rp without enderpearls.
Now you've got me thinking ;-)
How about a cost option? I'm thinking of an adventure where me and my mate can /rp around the very large world I've created but it costs us an Ender Pearl each so we have to find and fight Endermen to continue.
This idea is also where I was hoping to use one command to /rp us both together to the same location but I have another teleport plugin that allows us to teleport to each other. As it stands now one will have to /rp first then the other teleports to that person.
@sharp237
It's already in the config:
Cooldown: Activated: false Length in seconds: 120
Just make the length some ridiculously high number and there you are.
Can you make a cooldown option so that you can only use /rp once?