DragonAntiPvPLeaver

DragonAntiPvpLeaver (DAPL) is a lightweight version of AntiPvPLogger.
Based on NPCLib and AntiPvPLogger.
IMPORTANT
You need the right version since the Wolverness commit.

- Spawn an NPC if enemy player logs out
- DAPL/NPC spawn disabled if player got kicked *new in 2.1.6.4*
- WorldGuard support
- Factions 2.0+ support
- Possible to only spawn NPC if enemy player is nearby
- Increase in NPC lifetime if an NPC takes damage
- Multi-language support, messages configurable
- Broadcasts NPC events only around a specified radius
- Bypass permission (dragonantipvpleaver.bypass)
- Metrics statics
- h14ix Updater (default you get only a notification)

If a player logs out (if npc.spawn.onlyIfPlayerNearby is set on true a player must be in the config defined npc.spawn.distance)
an NPC spawns at the position of the left player. You can kill the NPC and loot the player. When the player rejoins the server, he dies.
The NPC despawns after a specified time (see npc.spawn.time). If the NPC takes any kind of damage, his despawn time increases by npc.spawn.additionalTimeIfUnderAttack.

- Maintenance the plugin
This plugin fetches the newest version from the dev.bukkit page. You can disable this feature in the config.yml. Set "autoupdate" to "off".
This plugin used Hidendra's plugin metrics system and send custom data to mcstats.org. For more details the see DAPL Metrics page.
Config: config.yml
Source: https:github.com/IDragonfire/DragonAntiPvPLeaver


Thanks to Serilum for maintenance.
Thanks to keptlv for the image banners.
Thanks to all users that updating the NPCLib from Top-Cat.
Jump to 38sec to skip installation and see the plugin in action
more videos: youtube.com
-
View User Profile
-
Send Message
Posted Dec 13, 2012@EnderdragonDE
Are there any problems, errors with the new build?
-
View User Profile
-
Send Message
Posted Dec 13, 2012new version of this plugin for craftbukkit (Build #02504) or higher available?
-
View User Profile
-
Send Message
Posted Dec 12, 2012@noxturno
Sometimes I have also these bug, get damage after some time ... Atm. i have no idea why ... I hope the new NPC API (RemoteEntities) fix it ;)
-
View User Profile
-
Send Message
Posted Dec 12, 2012@noxturno
Why I must block commands? If a NPC spawns, no player control the player and everybody can pick up the inventory ...
-
View User Profile
-
Send Message
Posted Dec 11, 2012oh I also notice that when you fight someone in a world guarded region and pvp is enabled they would disconect and their npc would take no damage for atleast 5 secs then it would go back to normal, seems like it takes abit for it to kick in in world guarded regions.
-
View User Profile
-
Send Message
Posted Dec 11, 2012thanks for the info I found out what whats going on. I had a knock back sword and it was setup so if they were 8 blocks away even after I hit them if they logged they would not spawn an npc xD, talked to the admin to fix it and disable player check.
thanks again
ps: anyway that you could add so it also disables commands? after been hit? dont want noobs that macro , /sethome then get back to get their stuff.
-
View User Profile
-
Send Message
Posted Dec 9, 2012@noxturno
There are atm. 5 options to bypass the npc logging ...
https://github.com/IDragonfire/DragonAntiPvPLeaver/blob/master/com/github/idragonfire/DragonAntiPvPLeaver/listener/DAntiPvPLeaverListener.java#L39
1. Player has permission "dragonantipvpleaver.bypass"
2. Player is OP
3. if factions enabled and player stand in safezone/non pvp zone
4. if world guard enabled and player stand in non pvp zone
5. if "spawn.onlyifPlayerNearby" set to true and no other player is in config defined range
-
View User Profile
-
Send Message
Posted Dec 9, 2012@LEOcab
I did not test it
If you set "spawn.onlyifPlayerNearby" to false and the player can not bypass the pvp logging a npc should spawn, but i have no idea if the npc take fall damage. If not, I set these feature onto my TODO list ;)
-
View User Profile
-
Send Message
Posted Dec 8, 2012people with op dont spawn the npc?right?, also besides giving the permission to not spawn the npc? who else or on what scenario the plugin would fail ??. trying to figure out if people on this server I am on are cheating.
-
View User Profile
-
Send Message
Posted Dec 8, 2012Does this plugin prevent PvE logging as well? I know the other one (AntiPvpLogger) allowed death by mobs, but what about falling deaths? People log out during long falls to prevent death and that's annoying. Would this plugin prevent that? :P
-
View User Profile
-
Send Message
Posted Dec 6, 2012@chopstick121
Sure?
Please download it again, stop the server replace the jar and start the server ... because your log file say something different ...
01.12 19:46:40 [Server] WARNING [DragonAntiPvPLeaver] Task #50 for DragonAntiPvPLeaver v1.3 generated an exception
-
View User Profile
-
Send Message
Posted Dec 6, 2012<<reply 1102242="">>
im using 1/6 though
-
View User Profile
-
Send Message
Posted Dec 3, 2012@chopstick121
Please use a newer version ...
Your version: 1.3
current version: 1.6
-
View User Profile
-
Send Message
Posted Dec 1, 2012help!
01.12 19:46:40 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856)
01.12 19:46:40 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426)
01.12 19:46:40 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:494)
01.12 19:46:40 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222)
01.12 19:46:40 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:530)
01.12 19:46:40 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345)
01.12 19:46:40 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53)
01.12 19:46:40 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65)
01.12 19:46:40 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V
01.12 19:46:40 [Server] WARNING [DragonAntiPvPLeaver] Task #50 for DragonAntiPvPLeaver v1.3 generated an exception
-
View User Profile
-
Send Message
Posted Nov 27, 2012@holyone801
Atm there is no possiblity, I add a reload feature to my todolist.
-
View User Profile
-
Send Message
Posted Nov 27, 2012is there anny commands to reload the config file ingame .. or do i need to restart the server everytime i edit the config ?
-
View User Profile
-
Send Message
Posted Nov 22, 2012@nicksow
You use DragonAntiPvpLeaver version 1.3 ...
If you have a Mnecraft 1.4 Server please try 1.6 ;)
-
View User Profile
-
Send Message
Posted Nov 22, 201222.11 13:29:14 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:14 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:14 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:14 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:14 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:14 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:14 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:14 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:14 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:14 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:14 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:14 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:14 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:14 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:14 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:14 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:14 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:14 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:14 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:14 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:14 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:14 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:14 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:14 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:14 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:14 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:14 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:14 [Multicraft] Skipped 150 lines due to rate limit (50/s) 22.11 13:29:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:13 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:13 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:13 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:13 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:13 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:13 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:13 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:13 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:13 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:13 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:13 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:13 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:13 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:13 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:13 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:13 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:13 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:13 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:13 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:13 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:13 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:13 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:13 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:13 [Multicraft] Skipped 150 lines due to rate limit (50/s) 22.11 13:29:12 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:12 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:12 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:12 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:12 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 22.11 13:29:12 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 22.11 13:29:12 [Server] WARNING [DragonAntiPvPLeaver] Task #3346 for DragonAntiPvPLeaver v1.3 generated an exception 22.11 13:29:12 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) 22.11 13:29:12 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) 22.11 13:29:12 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:529) 22.11 13:29:12 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 22.11 13:29:12 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 22.11 13:29:12 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65)
I have set the overwrite and debug config to true
List of plug ins://
Group Manager Link on signs World Edit Dragon anti-pvp leaver simple auto announcer vault votifier world guard essentials factions showcase stand alone essentials protect essentials spawn enjin minecraft plugin Anticheat
Hope you can find the problem, thanks :)
-
View User Profile
-
Send Message
Posted Nov 21, 2012@nicksow
Try to activate overwrite option in the config,
If that doesn't work switch to debug mode and send me your console log.
-
View User Profile
-
Send Message
Posted Nov 21, 2012NPC Doesnt take damage, what do i need to do, to allow them to take more than 1 hit??
Please help, much appreciated !!