PvpToggle
This plugin add private settings for PvP for Bukkit/Spigot minecraft servers! Plugin works on version 1.8+ !!!.
Source code is available on: https://github.com/xgh69/PvpToggle
Contact: xgh69 @ openmailbox.org
Current release version is: 2.1
Current snapshot version is: null
Features
- If player's pvp protection is enabled player cannot hurt any players, and players cannot hurt him.
- Admins can change players settings with command /pvpadmin
- Anty-logout
- Block /pvp command if region's pvp flag is allowed.
- Block any commands in fight.
- Block ender pearls in fight.
- Block gamemode creative in fight.
- Block fly in fight.
- WorldGuard flags supported.
Commands:
- /pvp enable - enable your pvp protection
- /pvp disable - disable your pvp protection
- /pvp status - get your status of pvp protection
- /pvpadmin info - get informations of plugin
- /pvpadmin reload - reload configuration
- /pvpadmin enable <player> - enable player's pvp protection
- /pvpadmin disable <player> - disable player's pvp protection
- /pvpadmin status <player> - get player's status of pvp protection
Permissions:
- pvptoggle.admin - for /pvpadmin
Config:
- '$player' will be replace to player name
Changelog:
- 1.0:
- Added UUID support.
- 1.1:
- Removed API class. Please use PvpToggle class to use API.
- Repaired translations/
- Added subcommands to /pvptoggle.
- 1.2:
- Removed PvPManager class.
- Repaired bugs.
- 1.3:
- Added 'settings' category to config.yml
- Repaired bugs.
- 1.4:
- Added join messages with pvp status (idea from private message from @seema23)
- Added subcommands 'help' for /pvpadmin and /pvp. (idea from private message from @seema23)
- Added subcommand 'version' to /pvpadmin.
- Added arguments aliases 'on' to /pvp enable and /pvpadmin enable.
- Added arguments aliases 'off' to /pvp disable and /pvpadmin disable.
- Removed subcommand 'info' from /pvpadmin and /pvp.
- Repaired bug with getting unknown message from config.yml.
- Created new checking dependency system.
- Added blocking ender pearls on fight.
- Added blocking gamemode creative on fight.
- Added blocking fly on fight.
- Repaired bugs.
- Other.
- 1.5:
- Repaired critical bug.
- 1.6:
- Added new options to config.yml.
- Repaired bugs.
- 1.7:
- Added debugging mode (/pvpadmin debug enable).
- Repaired bugs.
- 1.8:
- Added messages on action bar (how to enable it, please set 'use_packets' to true in config).
- Repaired bugs.
- 1.9:
- Removed packets from code.
- Changed time format to unix time.
- 2.0:
- Repaired bug with bows.
- 2.1 (NEW, needs approval!):
- Added event PvpToggleDebugEvent.
- Default config is only English.
- Command /pvpadmin reload restart PvpToggle plugin, not configuration.
- Removed tag on chat, if player is in fight.
Please report bugs on https://github.com/xgh69/PvpToggle/issues !
Please donate for project to bitcoin address 1G3KuKjzsdc4FDsRSzVj6dnk6QmrpLJ4WL
I was getting error : java.lang.NoClassDefFoundError: com/sk89q/worldguard/protection/flags/Flag
I figured it required WorldGuard and I added it, but the error persisted. When I did a Google search for the error, I found that worldedit had the flags also. After installing these two plugins, the PVP plugin loaded without errors: http://dev.bukkit.org/bukkit-plugins/worldedit/ http://dev.bukkit.org/bukkit-plugins/worldguard/
@shilofax, thanks for this report! Please look changelog of version 2.0 on Main page. ;)
Bows seem to damage other players even if PVP protection is enabled. Is there any way this can be fixed?
@xgh69
Oh! Thank you!
Sorry, version 1.8 using packets from CraftBukkit/Spigot 1.8. Version 1.9 is working ;) If you want use packets in PvpToggle, please download Spigot 1.8 from getspigot.org and download PvpToggle source code from github, uncomment code in PlayerListener class and PvpUtils class and compile it using maven. ;)
I get this error with the newest version:
[22:16:46] [Server thread/INFO]: [PvpToggle] Enabling PvpToggle v1.8
[22:16:46] [Server thread/ERROR]: Error occurred while enabling PvpToggle v1.8 (Is it up to date?)
java.lang.NoClassDefFoundError net/minecraft/server/v1_8_R1/Packet
at me.xgh69.pvptoggle.main.PvpToggle.onEnable(PvpToggle.java:117) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at me.incomprehendable.dev.pwp.transparentlisteners.PerWorldPluginLoader.enablePlugin(PerWorldPluginLoader.java:141) [PerWorldPlugins.jar]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:357) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:317) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:414) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:378) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:333) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:263) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525) [spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_60]
Caused by: java.lang.ClassNotFoundException net.minecraft.server.v1_8_R1.Packet
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:91) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.8.8-R0.1-SNAPSHOT-latest.jar:git-Spigot-db6de12-18fbb24]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_60]
... 13 more
In version 1.6 [b](needs approval)[/b] to config.yml has been added new options and repaired bugs. ;)
New stable version is 1.3, but needs approval ;)
Version 1.2 is stable! :)
Sorry for bugs. :(
What is the compatibility for 1.7.10? I'm currently running with it. It seems okay so far. Also worldguard 6? Please respond!