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
@FuRiouSOne
Plugin work atm only with 1.3.2, if a beta build got released I update the plugin ...
Just 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)
@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.
Gives 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
Does this block commands while in Fight mode?
Im allso looking for an antipvplogger that works with faction safezones
@IDragonfire
when will it works with Safezone (faction)
@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 ;)
@IDragonfire
when the person was hit there not getting damage after pvp log
It prevent pvp logging .... You are right, it create a NPC with the player name. What Tag do you mean?
Does this Protect PvP logging and create an NPC and shows the Player name Tag too?
@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
@zeshan321
Yes, planned ;)
Hey, can u add factions safezone support?
Debug-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.
@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.
@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 ;)
Without 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
Very good its works
Normally the player dies, sounds like a plugin interrupt it :(