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!
Can we have it so that when in a CTP game Using the CaptureThePoints plugin, you dont get spammed with "[player] has pvp off"
GReat plugin, but I can't seem to get it to work. I installed it because pvp would not work no matter what, I'm guessing it's permissions, essentials or worldgaurd. But I got your plugin, and set pvpenabled for my world to true and logindeafault to true, but pvp didn't work, I tried doing /pvp on (My name, case sensitive) JulesCraft and it said "No world matching that name!". Here is a list of my plugins: WorldGuard, iConomy, WorldWarp, GameMode Changer, MobDisguise, HeroChat, MultiInv, Essentials, NetherFire, WirelessRedstone, WorldEdit, NoCheat, PvPToggle, PermissionsEx, VoxelSniper, ChatManager, ModifyWorld, EssentialsSpawn, EssentialsProtect, Permissions, mcMMO, LogBlock, Jobs, LWC, Factions.
@SleelinThanks. XD
@deleted_7536780
Ooh, that makes more sense! Thanks for clarifying!
CaptureThePoints does so in a different way, specifically, it also listens for player damage events, and after all other plugins have had their way with the event, if the plugins cancel the event, CTP will uncancel it, so the player takes damage (since PvPToggle cancels the player damage event if PvP is disabled for either player, this method works, however a message will still come up saying PvP is disabled).
@LimeByte
I'll write up an API page, as far as I know, it's already possible to interact directly with PvPToggle, but I never thought to document how.
If you look. He's a plugin Dec. He wants to know how to ingore or overide your plugin so that even of pvp is set to off for an individual, when they start a pvp team game with his plugin it forces them all to have pvp on and or ignores you're plugin.
Which capturethepoints does.
@deleted_7536780
What exactly does capture the points do already? I don't see anything in there about forcing PvP to be disabled. What I do see is that it disables all commands except those used by the plugin.
@LimeByte
http://dev.bukkit.org/server-mods/capturethepoints/ does this already
@LimeByte
I'm not sure what you're asking, the plugin already has the capability to force PvP on individual players as of version 0.5.0, just give them the pvptoggle.pvp.force node.
How would I force PvP on a certain player and not let them change it in my plugin? This would help to prevent cheating.
@SilentStray
I started a ticket based on this issue.
What version of PvPToggle and Citizens are you running?
Edit: reply to the ticket here
Edit 2: If you also experience this problem, update both PvPToggle and Citizens to the latest versions!
Code didn't work, this looks nicer
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417) 2011-11-04 14:51:04 [SEVERE] Could not pass event ENTITY_DAMAGE to PvPToggle java.lang.NoClassDefFoundError: com/citizens/npcs/NPCManager at com.sleelin.pvptoggle.PvPToggleEntityListener.onEntityDamage(PvPToggleEntityListener.java:29) at org.bukkit.plugin.java.JavaPluginLoader$63.execute(JavaPluginLoader.java:700) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:570) at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:202) at net.minecraft.server.EntityHuman.d(EntityHuman.java:721) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:916) at net.minecraft.server.Packet7UseEntity.a(SourceFile:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374) at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
@moparisthebest
You can find it by going to old forum post.
https://github.com/sleelin/PvPToggle
I see this is licensed GNU/GPL, which is excellent! But where is the code hosted? I don't see a link.
Also I made a ticket you can hopefully accept. :)
@Pssquadous
Either you make them OPs or you install a permissions plugin. I highly recommend installing a permissions plugin as it its not too hard to set up, and most plugins depend on them now.
Hi, How my player can toggle PVP for themselves?
The command /pvp, /tpvp, /gpvp only works as an Admin/op My players can't use those commands to enable the pvp individualy
I don't use permissions
@AlexDGr8r
Fixed. Waiting on BukkitDev approval for the uploaded file.
Edit: updated.
@AlexDGr8r
Alright cool, I'll look into it.
Just letting you know sleelin. The permissions appear to have stopped working correctly on my server. I have Factions installed but that shouldn't stop it.