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 20, 2012@EnderdragonDE
Any earliers errors?
-
View User Profile
-
Send Message
Posted Dec 20, 2012Using DAPL 1.7 and Craftbukkit 1.4.6-R0.1 (Build #02547)
2012-12-20 23:08:59 [SEVERE] java.lang.NullPointerException
2012-12-20 23:08:59 [SEVERE] at com.github.idragonfire.DragonAntiPvPLeaver.DAntiPvPLeaverPlugin.isAntiPvpNPC(DAntiPvPLeaverPlugin.java:340)
2012-12-20 23:08:59 [SEVERE] at com.github.idragonfire.DragonAntiPvPLeaver.listener.DAntiPvPLeaverListener.onEntityDamageByEntity(DAntiPvPLeaverListener.java:137)
2012-12-20 23:08:59 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2012-12-20 23:08:59 [SEVERE] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2012-12-20 23:08:59 [SEVERE] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2012-12-20 23:08:59 [SEVERE] at java.lang.reflect.Method.invoke(Method.java:601)
2012-12-20 23:08:59 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
2012-12-20 23:08:59 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2012-12-20 23:08:59 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
2012-12-20 23:08:59 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.EntityLiving.C(EntityLiving.java:1580)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.Entity.y(Entity.java:342)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.EntityLiving.y(EntityLiving.java:307)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.Entity.j_(Entity.java:237)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.EntityLiving.j_(EntityLiving.java:497)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.World.entityJoinedWorld(World.java:1334)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.WorldServer.entityJoinedWorld(WorldServer.java:546)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.World.playerJoinedWorld(World.java:1315)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.World.tickEntities(World.java:1193)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.WorldServer.tickEntities(WorldServer.java:443)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:580)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
2012-12-20 23:08:59 [SEVERE] at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
-
View User Profile
-
Send Message
Posted Dec 20, 2012@mrchasez
Can you activate the debug mode and send me the log? Did you have AuthMe, Modifyworld or EssentialsProtect? I think some plugin blocks the damage.
-
View User Profile
-
Send Message
Posted Dec 20, 2012@IDragonfire
I have an issue V1.6 don't work. It creates an NPC fine but the NPC can't be killed. It just stands there for ten seconds and despawns. So this plugin don't work ;(
-
View User Profile
-
Send Message
Posted Dec 19, 2012No errors. Nice work!
-
View User Profile
-
Send Message
Posted Dec 19, 2012VERSION FOR BUKKIT 1.4.5-R1.0 is out:
https://github.com/IDragonfire/DragonAntiPvPLeaver/blob/e90df77c3524fa63e2af5b9a0798bf66bb311dde/plugins/DragonAntiPvPLeaver%20v1.7.jar
happy testing, please post errors here or create an issue on github
-
View User Profile
-
Send Message
Posted Dec 19, 2012@Serilum
I know ;)
-
View User Profile
-
Send Message
Posted Dec 19, 2012Patiently waiting! :O
-
View User Profile
-
Send Message
Posted Dec 19, 2012@IDragonfire Woot! I love you! :D
-
View User Profile
-
Send Message
Posted Dec 19, 2012@LEOcab
K, I try it to update today ;)
-
View User Profile
-
Send Message
Posted Dec 19, 2012Yeah, we need a 1.4.5-R1.0 build ASAP before 1.4.6 comes out... I hate to run my server without PvP log protection. It's such a pain in the bum. *Prays to IDragonFire*
-
View User Profile
-
Send Message
Posted Dec 19, 20122012-12-19 15:07:55 [SEVERE] Could not load 'plugins\DragonAntiPvPLeaver_v1.6.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException java.lang.NoClassDefFoundError net/minecraft/server/NBTBase
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.loadPlugins(CraftServer.java:229)
at org.bukkit.craftbukkit.v1_4_5.CraftServer.<init>(CraftServer.java:207)
at net.minecraft.server.v1_4_5.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:52)
at net.minecraft.server.v1_4_5.ServerConfigurationManager.<init>(SourceFile:11)
at net.minecraft.server.v1_4_5.DedicatedServer.init(DedicatedServer.java:111)
at net.minecraft.server.v1_4_5.MinecraftServer.run(MinecraftServer.java:398)
at net.minecraft.server.v1_4_5.ThreadServerApplication.run(SourceFile:856)
Caused by: java.lang.NoClassDefFoundError net/minecraft/server/NBTBase
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.ClassNotFoundException net.minecraft.server.NBTBase
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
Using http://dl.bukkit.org/downloads/craftbukkit/view/01707_1.4.5-R1.0/
-
View User Profile
-
Send Message
Posted Dec 19, 2012Is there a development build for this? I need a r.3 version
-
View User Profile
-
Send Message
Posted Dec 19, 2012@jhonnlennon
Please try to deactivate the updater in the config.
These should solve the problem.
How much does the error occurs?
-
View User Profile
-
Send Message
Posted Dec 18, 2012@jhonnlennon
Sry, I only speak german and english, but thanks for the log. You use Beta Build 1.4.5 R0.2?
-
View User Profile
-
Send Message
Posted Dec 18, 2012Alguem ja viu algo igual?
01:25:06 [INFO] [DragonAntiPvPLeaver] Enabling DragonAntiPvPLeaver v1.6 01:25:06 [INFO] [DragonAntiPvPLeaver] Loaded 0 Dead Players. 01:25:06 [SEVERE] java.lang.RuntimeException: java.net.UnknownHostException: dev.bukkit.org 01:25:06 [SEVERE] at net.h31ix.updater.DragonAntiPvpLeaver.Updater.read(Updater.java:582) 01:25:06 [SEVERE] at net.h31ix.updater.DragonAntiPvpLeaver.Updater.readFeed(Updater.java:541) 01:25:06 [SEVERE] at net.h31ix.updater.DragonAntiPvpLeaver.Updater.<init>(Updater.java:203) 01:25:06 [SEVERE] at com.github.idragonfire.DragonAntiPvPLeaver.DAntiPvPLeaverPlugin.enableAutoUpdate(DAntiPvPLeaverPlugin.java:132) 01:25:06 [SEVERE] at com.github.idragonfire.DragonAntiPvPLeaver.DAntiPvPLeaverPlugin.onEnable(DAntiPvPLeaverPlugin.java:76) 01:25:06 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) 01:25:06 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:374) 01:25:06 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) 01:25:06 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:270) 01:25:06 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:252) 01:25:06 [SEVERE] at net.minecraft.server.MinecraftServer.j(MinecraftServer.java:320) 01:25:06 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:299) 01:25:06 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:258) 01:25:06 [SEVERE] at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:147) 01:25:06 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:398) 01:25:06 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) 01:25:06 [SEVERE] Caused by: java.net.UnknownHostException: dev.bukkit.org 01:25:06 [SEVERE] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) 01:25:06 [SEVERE] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) 01:25:06 [SEVERE] at java.net.Socket.connect(Socket.java:579) 01:25:06 [SEVERE] at java.net.Socket.connect(Socket.java:528) 01:25:06 [SEVERE] at sun.net.NetworkClient.doConnect(NetworkClient.java:180) 01:25:06 [SEVERE] at sun.net.www.http.HttpClient.openServer(HttpClient.java:378) 01:25:06 [SEVERE] at sun.net.www.http.HttpClient.openServer(HttpClient.java:473) 01:25:06 [SEVERE] at sun.net.www.http.HttpClient.<init>(HttpClient.java:203) 01:25:06 [SEVERE] at sun.net.www.http.HttpClient.New(HttpClient.java:290) 01:25:06 [SEVERE] at sun.net.www.http.HttpClient.New(HttpClient.java:306) 01:25:06 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995) 01:25:06 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931) 01:25:06 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849) 01:25:06 [SEVERE] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299) 01:25:06 [SEVERE] at java.net.URL.openStream(URL.java:1037) 01:25:06 [SEVERE] at net.h31ix.updater.DragonAntiPvpLeaver.Updater.read(Updater.java:580) 01:25:06 [SEVERE] ... 15 more
-
View User Profile
-
Send Message
Posted Dec 18, 2012@NegroBob
R0.3? I though R0.2 is the latest version... Did you test is with the newest version?
-
View User Profile
-
Send Message
Posted Dec 18, 2012Is there a workable version for r:3
-
View User Profile
-
Send Message
Posted Dec 17, 2012@panborsuk
Yes, it is indirect possible. If you set "onlyIfPlayerNearby" to "true" it spawns only a NPC if a player is in the config "distance" defined range. https://github.com/IDragonfire/DragonAntiPvPLeaver/blob/master/config.yml#L14
-
View User Profile
-
Send Message
Posted Dec 16, 2012It works only while PvP? Can I "turn off" this plugin in situations like fighting with mobs or lava fall?
Thanks for answer.