CombatTagPlus icon indicating copy to clipboard operation
CombatTagPlus copied to clipboard

When a NPC is killed a player should lose DTR

Open KennyDGP opened this issue 10 years ago • 2 comments

Hey, how's it going?

I use a Hardcore Factions plugin for my server: https://mcexchange.org/resources/hcfactions.2/

The CombatTag plugin doesn't hook in with it so when a user combat logs, and their NPC is killed they don't lose DTR. Anyway you could add that?

I'm using spigot 1.8.8 and the latest dev build of Combat Tag. We tried the current release on spigot and same issue happened.

KennyDGP avatar Oct 17 '15 22:10 KennyDGP

This is not a bug, this is a feature request.

Techcable avatar Jun 26 '16 19:06 Techcable

@EventHandler public void onDespawn(NpcDespawnEvent e) { if (e.getDespawnReason().equals(NpcDespawnReason.DEATH)) { FPlayer p = FPlayers.getInstance().getByOfflinePlayer(Bukkit.getOfflinePlayer(e.getNpc().getIdentity().getId())); p.getFaction().updateDTR(); p.getFaction().setDTR(p.getFaction().getDTR() - 1.0); } }

Easy to do yourself

nakitsuro avatar Jul 03 '16 13:07 nakitsuro