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!
Could you make a config option for the /pvp to toggle pvp for all worlds not just the world the player is on.
This would be much simpler for players to understand.
Hey, I really want to use this pkugin, now, when i use it everything works fine, except the fact that PvP wont work. I turn on PvP on a player, his status is ON, but I cant hit him. Any idea why? Thanks.
@lolitsthad
Give them the pvptoggle.pvp.deny permission node
@Sleelin
Is there a way to specify certain players who will be set to OFF all the time, or as soon as they log in?
Hello,
this is a very good plugin thx !
Can you add for the next version a store player statuses across server restarts or reloads PLZ ! :D
@lolitsthad
Design. The plugin was never designed to store player statuses across server restarts or reloads. You probably have the login default set to on, so when players rejoin after a reload, they log in with the default on status. There's a possibility this will be added in the future.
@jenks1999
Start a ticket. Provide your config.yml and localisations.yml files with the ticket (tick the box at the bottom which says "Upload a file or screenshot after creating ticket?"), as well as more context of what was happening when this error occurred (i.e. Was someone toggling their status? Were two combatants attempting to fight? Did the error persist after restarting/reloading the server? Any other relevant information on what was going on at the time of the error).
Sometimes players with PVP OFF are switched back to PVP ON when they relog or server restarts. I'm not sure what causes it.
Great plugin bud ;-)
@Sleelin Thanks a lot! :)
2012-04-25 20:37:10 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPToggle org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:360) at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:378) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:608) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:215) at net.minecraft.server.EntityHuman.attack(EntityHuman.java:750) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:997) at net.minecraft.server.Packet7UseEntity.handle(SourceFile:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.sleelin.pvptoggle.PvPToggle.checkLastAction(PvPToggle.java:341) at com.sleelin.pvptoggle.listeners.EntityListener.eventMagic(EntityListener.java:97) at com.sleelin.pvptoggle.listeners.EntityListener.onEntityDamage(EntityListener.java:57) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 17 more 2012-04-25 20:37:12 [SEVERE] Could not pass event EntityDamageByEntityEvent to PvPToggle org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:360) at org.bukkit.craftbukkit.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:378) at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:608) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:595) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:215) at net.minecraft.server.EntityHuman.attack(EntityHuman.java:750) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:997) at net.minecraft.server.Packet7UseEntity.handle(SourceFile:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at com.sleelin.pvptoggle.PvPToggle.checkLastAction(PvPToggle.java:341) at com.sleelin.pvptoggle.listeners.EntityListener.eventMagic(EntityListener.java:97) at com.sleelin.pvptoggle.listeners.EntityListener.onEntityDamage(EntityListener.java:57) at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 17 more
please advise on what i should do.... thanks.
Version 2.1.0 available, adds complete customisation of messages presented to users. Messages support standard colour codes as seen here.
@user_83 @KyleBoyer @bigboy2012 @drdeft @turikhay
Should be fixed in the latest version available here. P.S. Sorry to keep you waiting so long!
@Csanko
You had the command correct, however a bug caused it to not be processed correctly. Try again with the latest version available here
@Digitalink2008
Yes, there is - I will add that each world needs to have PvP enabled in MultiVerse to the config section - thanks for pointing that out!
isn't there a pvp option in MV2?
@bigboy2012
It's my problem, too.
Developer, please fix this bug :(
IT also wont reganize my worlds..
/pvp w:PVEWORLD off
DOESNT WORK!
PVEWORLD name of the world :)
thanks in advance :)
How do i change a worlds pvp status to pve??
/gpvp doesn't work!
bigboy2012, I have this problem too
Well I tried the Start a ticket, but that failed to work for me. Anyways, I have the same problem as MinecraftDaemon. Basically when me or any other player says /pvp on, it says Pvp enabled! But when i say /pvp status, it says disabled. Here is what my config looks like:
I also gave all players these permissions:
pvptoggle.use pvptoggle.self pvptoggle.self.toggle pvptoggle.self.status (I added these two after not getting it to work, just to be safe.) pvptoggle.pvp (I wasnt sure about this one, I added this after trying several times, still didnt do anything).
I even tried /pvp global on, and no luck. Even when /pvp global status says pvp on, it doesnt work.
Also, I use GroupManager for permissions. Should it be doing this with the settings I have? Basically what I want is when a player first logs on, they have pvp off automatically. then when they say /pvp on, it turns it on after 1 second. Then after fighting or anything when its on, they have to wait 10 seconds until they can turn it off.
Hello! How can I turn on PVP for a specific world named PVP? I have tryed looking at the commands and I cannot figure it out!
Please provide an example to turn on pvp for a world named PVP.
I have that in the permissions file but its still not working
@user_83
Be sure you have pvptoggle.use in your permissions file.