PvPToggle
PvPToggle
Allows players to decide whether or not they want PvP to be enabled or disabled, and stops PvP attacks when either the attacker or defender has PvP disabled. Also allows admins to toggle global or world-specific PvP, or the PvP status of a specific player, in a specific world. Muti-world compatible, Permissions compatible.
Latest version: v3.0.0
Features:
- Pretty much stated above, but hey, here they are anyway:
- Individual, player-specific enabling or disabling of PvP
- Global PvP control
- World-specific PvP control
- Automatically enable PvP in combat
- Permissions support - only allow certain groups or players access to specific functions
- Multiworld support - configure which world you want the plugin to be active in
- Cooldown timer - set time since last conflict in seconds before users can disable PvP again
- Blocks projectile PvP damage (including damage from Arrows, Snowballs and Fireballs!)
- Block thrown poisonous potion damage
- Warmup timer - set time since enabling PvP in seconds before users can PvP
- Pick between three different commands
- Set your own custom messages on PvP and command events
- WorldGuard PVP flag integration!
Installation:
To install this plugin, all you have to do is place it in your Bukkit plugins folder, and run the server (or reload it) once. This automatically generates a configuration file. That's it! The plugin is now installed.
To read more information about how to set up the configuration, see the Configuration page.
Or, to see what permissions you need to give your users for them to be able to use certain commands, see the Permissions page.
Commands:
PvPToggle now has the functionality to allow you to set the command which it should use! This is settable in the configuration file, and by default, will be set to "/pvp". All command functionality of PvPToggle is accessed via one command.
Basic command overview:
Command | Description |
---|---|
/pvp | Toggle own PvP status |
/pvp [status| on| off] | Set or check own PvP status |
/pvp [status| on| off] <player> [world] | Set, reset or check another players' PvP status. Add [world] argument to work in specific world |
/pvp w:<world> [status| on| off| reset] | Check, set or reset world-wide PvP status of specified world |
/pvp global [status| on| off| reset] | Deals with server-wide plugin operations - used to enable, disable, reset or check status of server-wide global PvP |
/pvp region [add| remove] <region> <world> | Adds or removes a WorldGuard region from PvPToggle's usage |
For more detailed information on usage of each command, see the commands page!
For more detailed information on region management and WorldGuard integration, see the WorldGuard Integration page!
Upcoming:
- Blocking
potion andfire damage - Time-based PvP restrictions
- Announcements
For support, bugs and feature requests, DON'T COMMENT, please start a ticket instead!
I'd like to have PvP enabled by default and let people toggle it off, but when I have PvP denied in my spawn area it sets their's to off and when they leave that area it stays off. :(
@Sleelin
are you working on fixing my issue, and does this plugin have a dev build site/jenkins
@PapaHarni
Upgrade to 3.0.0, it is compatible with 1.4.x.
Hello ,
My server running on 1.4.2 with PvPToggle 2.2.1 but it's don't work the command /pvp region add <region> <world>
Is it new for 1.4.5 or what mus i do to let it work?
Thanks for keeping it up (to date). Will test it asap :-)
What is "cooldown", it explained it in the config page but I still don't understand.
I keep getting this error:
21.11 18:51:56 [Server] INFO ... 15 more 21.11 18:51:56 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 21.11 18:51:56 [Server] INFO at com.sleelin.pvptoggle.handlers.CommandHandler.onCommand(CommandHandler.java:44) 21.11 18:51:56 [Server] INFO at com.sleelin.pvptoggle.PvPCommand.exec(PvPCommand.java:38) 21.11 18:51:56 [Server] INFO at com.sleelin.pvptoggle.commands.Region.processCommand(Region.java:33) 21.11 18:51:56 [Server] INFO at com.sleelin.pvptoggle.commands.Region.addRegion(Region.java:73) 21.11 18:51:56 [Server] INFO at com.sleelin.pvptoggle.handlers.RegionHandler.addRegion(RegionHandler.java:83) 21.11 18:51:56 [Server] INFO Caused by: java.lang.NullPointerException 21.11 18:51:56 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 21.11 18:51:56 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 21.11 18:51:56 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 21.11 18:51:56 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 21.11 18:51:56 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595) 21.11 18:51:56 [Server] INFO at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) 21.11 18:51:56 [Server] INFO at net.minecraft.server.ServerConnection.b(SourceFile:39) 21.11 18:51:56 [Server] INFO at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113) 21.11 18:51:56 [Server] INFO at net.minecraft.server.NetworkManager.b(NetworkManager.java:290) 21.11 18:51:56 [Server] INFO at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:44) 21.11 18:51:56 [Server] INFO at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:858) 21.11 18:51:56 [Server] INFO at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:903) 21.11 18:51:56 [Server] INFO at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:985) 21.11 18:51:56 [Server] INFO at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:502) 21.11 18:51:56 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) 21.11 18:51:56 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) 21.11 18:51:56 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'pvp' in plugin PvPToggle v3.0.0 21.11 18:51:56 [Server] SEVERE null 21.11 18:51:56 [Server] INFO [iSafe] Myst_Fuzi0n did or tried to do the command /pvp region add pvparena
EDIT: I didn't have WG Integration on in config, so that's prolly it, but you should fix it either way.
Major update released as [v3.0.0] available here for you bleeding-edge uptakers.
WorldGuard integration drastically improved - it can now be disabled entirely through the config file. Region management has been shifted to a dual-control model, regions must be 'tagged' in PvPToggle before their WorldGuard PVP flag settings are honoured.
@carlgo11
If you read that stack trace, you can see that it has nothing to do with compatibility with 1.4.x, and everything to do with compatibility with Citizens. I'm guessing you're still running Citizens 1.x. As of [v2.1.1] Citizens integration requires Citizens v2.0 or above. This is due to Citizens' constant state of flux with their API. Upgrade Citizens and you will be fine.
@finamenon
@ViscousSummer88
I have tested and it is functioning correctly for myself and many others. If you are experiencing issues, feel free to submit a ticket, but I am going to need more information than just "it's not working". In the ticket, be sure to list the other plugins you have installed, and any errors you see being spammed into console
@ignasiux
@deathhzone
Upgrade for fixes.
@ViscousSummer88
Plugin works fine for us - 1.4.4 with the last dev build bukkit released for it. Not a single error and nothing locks up, you sure you don't have another plugin interfering?
Fix WG Flag integration and rest of stuff please.
How to disable WorldGuard integration?? It is buggy
@Sleelin
This does not work on either 1.4.2 or 1.4.4, as stated by a lot of people below. Please update as when you have it running on a 1.4.4 server it locks the PvP to always on, plus it spams the console with a lot of errors.
Doesn't seem to be working at all for me. PvP forced on globally, players turning on pvp, nothing happens when hitting each other with various methods. I use multiverse, pvp is turned on in current world.
No it doesn't work fine!
20:14:46 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPToggle v2.2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at org.bukkit.craftbukkit.event.CraftEventFactory.callEvent(CraftEventFactory.java:80) at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:364) at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:386) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:645) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:585) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:296) at net.minecraft.server.EntityMonster.l(EntityMonster.java:86) at net.minecraft.server.EntityMonster.a(EntityMonster.java:108) at net.minecraft.server.EntitySpider.a(EntitySpider.java:91) at net.minecraft.server.EntityCreature.bk(EntityCreature.java:56) at net.minecraft.server.EntityLiving.c(EntityLiving.java:1210) at net.minecraft.server.EntityMonster.c(EntityMonster.java:20) at net.minecraft.server.EntityLiving.j_(EntityLiving.java:497) at net.minecraft.server.EntityMonster.j_(EntityMonster.java:24) at net.minecraft.server.EntitySpider.j_(EntitySpider.java:20) at net.minecraft.server.World.entityJoinedWorld(World.java:1278) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:526) at net.minecraft.server.World.playerJoinedWorld(World.java:1260) at net.minecraft.server.World.tickEntities(World.java:1159) at net.minecraft.server.WorldServer.tickEntities(WorldServer.java:439) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:566) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:495) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:428) at net.minecraft.server.ThreadServerApplication.run(SourceFile:818) Caused by: java.lang.NoClassDefFoundError: net/citizensnpcs/api/CitizensAPI at com.sleelin.pvptoggle.listeners.EntityListener.onEntityDamage(EntityListener.java:51) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339) ... 28 more
The current version should work fine on 1.4.2.
I am working on strengthening the WorldGuard integration, adding the ability to specify which regions you wish PvPToggle to perform checks in, as well as the ability to outright turn off the integration.
I am also working on dumping and loading each player's toggle state into a separate YAML file in the configuration directory, or hooking into a MySQL database for storage and loading of player states.
Does this work on 1.4.2 without any severe errors?
Please update to 1.4.2!
I really hope this gets update!!!
Although, from looking at the Authors of the plugin... I can see.... a month has past since their last log-on :(
I was just wondering if you where going to update this to a 1.4.2 mod. I have been using this on my servers and everyone is in love with it.
Please update the plugin to 1.4.2!