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
This plugin is brilliant, exactly what my server needs, thanks! The only thing is, if the NPC dies, then the player will spawn in the same place alive, but without their items (as they dropped). Is there any way to have it so the player logs in and is dead, and has to click the respawn button? Thanks!
Agree @keptlv: This is a Leaver/Logout Plugin, not a Teleport Abuse Plugin
@Curtis4321
I guess no. This is anti pvp logout plugin.. I don't think this plugin should handle things with the teleporting.. You must do a configuration for other plugins, like Factions if you are using it.
@IDragonfire
But the plugin will stop players form tpaccepting other players to the fight ect.
Why did you want to block commands, if the player left the game already?
Suggestion (Needed)
Allow the blocking of commands.
Like in pvp - f home - spawn - tpaccept
They will be blocked ect (Configurable)
Does the "Failed to teleport new player java.util.ConcurrentModificationException" happens after you installed my plugin? These Exception is thrown by Essentials, have you the newest Essentials version?
If possible please try to update PEX (Modifyworld) ... All, expect the expcetion looks fine.
Can you send me some lines before and after these snippet?
These plugins listen also to the damage event, but before my plugin:
NoCheatPlus
AuthMe
Modifyworld
MobArena
Infected
Essentials
FoundDiamonds
Vanish
Factions
I use also NoCheatPlus, Modifyworld (PEX), Essentials and Vanish and it works. I implement "overwriteAllNpcDamageListener" to fix AuthMe problems and I know this user has also Factions.
debug.. but its only a part.. I hope enough to find the problem.
http://pastebin.com/LqqcTMBw
I guess, it's somthing about the modifyworld? So I need to update the PEX? or..?
@Curtis4321
If you use the newset version of Modifyworld yes. Otherwise send me the debug output. See my previous post for details.
@keptlv
If a plugin protect the NPC you must deactivate it in the plugin that protect the npc, activate the overwrite option, or send me the debug output ;)
A old version of Modifyworld has a bug that protect the NPC. xAuth, AuthMe cause problems, because a NPC is a unregistered player.
Any known bugs?
And what's with the essentials, factions, modifyworld, permEx plugins? Are they in conflict?
edit: I installed this plugin, but It didn't worked by the defaults, cause Im using Authme, so I set "overwriteAllNpcDamageListener: true". Now the NPC is spawned when player quits, but he is having unlimited health and you can beat him all those 15 seconds and he won't drop his items and wont die when connects. How to solve this problem? My craftbukit version: 1.3.2 Recommended build
Does this work with Modifyworld?
As my Plugin AntiRelog - Which i cannot update. Works with Modifyworld. By working i mean, Does it interact perfectly. Like it will hit the player like a normal player, and u wont need to hit the feet?
Just tested Dont work with ModifyWorld. Also when they spawn, they spawn back in there spot they logged out in
@Constantine32
Ok, some of these plugins are in conflicts with DragonAntiPvPLeaver:
xAuth Modifyworld Essentials Factions Worldguard mcMMO
I can only advise which plugin cancel the events.
Modifyworld ist part of PEX. I use Essentials, Worldguard and PEX and have no problems ...
@IDragonfire
Finally I won't install any kind of anti pvp loggin on my server :P.
You can kill the NPC and the players dies on join if "overwriteAllNpcDamageListener" is true?
- The overwriteAllNpcDamageListener was on true when I send you the log.
Have you the newsest PEX Version?
- Yep
Can you please deactivate xAuth and test it again?
- I'm a bit busy, sorry.
Did you protect villagers in the Essentials (section protect) config?
- No, I think (villager-death: false).
@Ken6911
Did you use Heroes?
@Constantine32
You can kill the NPC and the players dies on join if "overwriteAllNpcDamageListener" is true?
Have you the newsest PEX Version?
Can you please deactivate xAuth and test it again?
Did you protect villagers in the Essentials (section protect) config?
Can you add an option to config that will allow npc to spawn only if player is involved in pvp within last settable amout of seconds?
Here is the log (http:pastebin.com/LgD9XSRc).
@Constantine32
I kill only the player if he logs out and the NPC get killed. If the player join and the NPC was still alive the player has the same HP as he logs out. Atm. I have no feature to reduce the player health.
I print it in the server console ... Please search for [DragonAntiPvPLeaver] A own log file would be a good idea xD