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 Oct 30, 2012@FuRiouSOne
Plugin work atm only with 1.3.2, if a beta build got released I update the plugin ...
-
View User Profile
-
Send Message
Posted Oct 29, 2012Just like to add my error is different then below but i am using the DragonAntiPvP 1.1 (not leaver) but is from same author i believe. Error is below.
2012-10-29 18:33:08 [WARNING] [DragonAntiPvP] Task #16 for DragonAntiPvP v1.1 generated an exception java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V at com.topcat.npclib.NPCManager$1.run(NPCManager.java:64) at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:522) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419) at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
-
View User Profile
-
Send Message
Posted Oct 29, 2012@Serilum
The plugin still works just when a player logs out and the NPC is spawned is when the error messages spam till NPC despawns or player logs back in. Just have to fix the timer on NPC conflicting with 1.4.2 bukkit.
-
View User Profile
-
Send Message
Posted Oct 28, 2012Gives loads of error messages on Dev Build #2415 (not surprising)
28.10 20:09:08 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:818) 28.10 20:09:08 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419) 28.10 20:09:08 [Server] INFO at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486) 28.10 20:09:08 [Server] INFO at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215) 28.10 20:09:08 [Server] INFO at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:522) 28.10 20:09:08 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) 28.10 20:09:08 [Server] INFO at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:53) 28.10 20:09:08 [Server] INFO at com.topcat.npclib.DragonAntiPvPListener.NPCManager$1.run(NPCManager.java:65) 28.10 20:09:08 [Server] INFO java.lang.NoSuchMethodError: net.minecraft.server.Entity.z()V 28.10 20:09:08 [Server] WARNING [DragonAntiPvPLeaver] Task #18 for DragonAntiPvPLeaver v1.3 generated an exception
-
View User Profile
-
Send Message
Posted Oct 24, 2012Does this block commands while in Fight mode?
-
View User Profile
-
Send Message
Posted Oct 20, 2012Im allso looking for an antipvplogger that works with faction safezones
-
View User Profile
-
Send Message
Posted Oct 19, 2012@IDragonfire
when will it works with Safezone (faction)
-
View User Profile
-
Send Message
Posted Oct 17, 2012@chopstick121
Did you read the comments before? Some plugins interupt the damage ... Try to set the override entry in the config to true, or remove/update modifyworld ;)
-
View User Profile
-
Send Message
Posted Oct 17, 2012@IDragonfire
when the person was hit there not getting damage after pvp log
-
View User Profile
-
Send Message
Posted Oct 17, 2012It prevent pvp logging .... You are right, it create a NPC with the player name. What Tag do you mean?
-
View User Profile
-
Send Message
Posted Oct 16, 2012Does this Protect PvP logging and create an NPC and shows the Player name Tag too?
-
View User Profile
-
Send Message
Posted Oct 10, 2012@CubieX
I use atm the HIGHEST Priority for the DirtyListenr (overwrite: true) https://github.com/IDragonfire/DragonAntiPvPLeaver/blob/master/com/github/idragonfire/DragonAntiPvPLeaver/listener/DirtyListener.java
-
View User Profile
-
Send Message
Posted Oct 10, 2012@zeshan321
Yes, planned ;)
-
View User Profile
-
Send Message
Posted Oct 9, 2012Hey, can u add factions safezone support?
-
View User Profile
-
Send Message
Posted Oct 9, 2012Debug-Log:
You are right.... it is Modifyworld that causes the problem. But there is no config option, afaik to fix this. :(
I had a look at the source code and debugged into the Modifyworld EntityListener. Problem is: The Listener makes no distinction between a damaged player or NPC and it also presumes, that the damaged "player" has a specific permission to take damage. The NPC has the same name like the player that left, but the check for the permission fails anyway. (Even if the original player has this permission)
One solution could be to set the listener of Dragons plugin to a higher priority. (Modyfyworld uses a "low" priority on that listener.) But a proper solution can only be made by t3hk0d3. I asked him to consider this in his next release.
-
View User Profile
-
Send Message
Posted Oct 6, 2012@CubieX
Remove the modifyworld.jar and then that plugin will work. But this plugin isnot yet friendly with famous plugins like Factions.. so everyone can kill the NPC even on safezone. So, we must wait for some fix/updates.
-
View User Profile
-
Send Message
Posted Oct 6, 2012@CubieX
Can you activate the debug mode and send me the log after you try to kill the npc? Log is saved in the normal server.log ... Search for DragonAntiPvPLeaver ... If you use Modifyworld please try to remove the jar and test it again ;)
-
View User Profile
-
Send Message
Posted Oct 6, 2012Without the overwrite option enabled, the NPC does not take damage. With the option enabled, it seems like he does take damage, but he does not die. I hit him about 20 times with a diamond sword before he vanished, but without killing him.
Something is still not working here.
We are using CB 1.3.2-R1.0 with - PEX - WorldEdit
-
View User Profile
-
Send Message
Posted Oct 5, 2012Very good its works
-
View User Profile
-
Send Message
Posted Oct 2, 2012Normally the player dies, sounds like a plugin interrupt it :(