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!
@Rhino107
I Know i do not have PEX, and I have chosen op based permissions in the config and I still get the error!
Lezyamin, it says that you do not have Pex installed. For this version, you either have to use Pex or OP based permissions. If you decide to use OP, you must select it in the config.
Thanks for the help, I was confused as the old commands was /randtp, also when I now type /rp I get the following error:
16.03 08:34:16 [Server] INFO ... 14 more 16.03 08:34:16 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:356) 16.03 08:34:16 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:423) 16.03 08:34:16 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) 16.03 08:34:16 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) 16.03 08:34:16 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 16.03 08:34:16 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) 16.03 08:34:16 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 16.03 08:34:16 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 16.03 08:34:16 [Server] INFO Caused by: java.lang.ClassNotFoundException: ru.tehkode.permissions.bukkit.PermissionsEx 16.03 08:34:16 [Server] INFO ... 12 more 16.03 08:34:16 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) 16.03 08:34:16 [Server] INFO at com.yahoo.bertasiguy2.RandomPort.onCommand(RandomPort.java:84) 16.03 08:34:16 [Server] INFO Caused by: java.lang.NoClassDefFoundError: ru/tehkode/permissions/bukkit/PermissionsEx 16.03 08:34:16 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) 16.03 08:34:16 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) 16.03 08:34:16 [Server] INFO at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) 16.03 08:34:16 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:761) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:778) 16.03 08:34:16 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:818) 16.03 08:34:16 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:461) 16.03 08:34:16 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) 16.03 08:34:16 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) 16.03 08:34:16 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'rp' in plugin RandomPort v1.5 16.03 08:34:16 [Server] SEVERE null
I will look into adding bPermissions support.
Please at bPermissions/Super Perms support.. I dont use PEX and I don't use OP either. :P
I figured most people would be able to figure the commands out, but here they are:
(I probably should have posted this somewhere...)
/rp (RandomPorts the sender if they have permissions)
/rp <player> (RandomPorts the specified player)
What is the command to use this, because the /randtp command is not working for me!
Many bugs fixed, including a major bug from version 1.4 that would corrupt your config file. Delete your config if you downloaded 1.4!
In other news, it is now a softdepend on Pex, (my bad, was supposed to be originally), code is cleaner, new options added (for real this time), and bug fixes.
Message me if you have any suggestions/Questions!
Hard depend on PEX?
Sorry I forgot to update the main page.
I actually added that very permission in the latest release.
In the config PortOnDeath is an option. If set to true, then it is enabled. Once a player dies and PortOnDeath is set to true (false by default), the plugin checks the next line in the config. You have the option of either choosing randomly who to DeathPort, or automatically randomporting everyone with the permission randomport.deathport If random is chosen, the next number is the percentage out of 100 that the dead player will be teleported.
A few important things: The permissions DeathPort (not the randomly chosen Deathport) only works with Pex installed. If you do not have Pex, it will do nothing.
Lastly, I added a fake lightning strike option in the config. If set to true, (true by default) players will be struck by a lightning bolt but receive no damage. This is used as a marker for nearby players that someone has RandomPorted and was placed nearby.
How about a mix of them?
Permission: randomport.deathport = Reads from the config for a percent to teleport you upon death.
and whatever else you can come up with..
Wait how do you actually use it?
Nice plugin. Can we reload the config from within the game?
Yes I could add this. How would you want me to determine who to teleport? Should it be:
- Everyone - Everyone not an op - Everyone with a permission - Everyone without a permission - Or (my favorite) have a certain chance (50%,10% idc) of being randomported on death?
No ticket link to make suggestions like you asked, so I'll post here.
Since you have the framework, can you add an option to also teleport them somewhere random when they die? And be able to define a radius from spawn?
I did a quick check before posting this and didn't see any up to date plugins so I decided to make one for kicks.
http://forums.bukkit.org/threads/tp-randomport-v1-0-a-new-adventure-every-time-935.23304/
It may be out of date, and not update, but it still pretty much works.