Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When a NPC is killed a player should lose DTR #49

Open
KennyDGP opened this issue Oct 17, 2015 · 2 comments
Open

When a NPC is killed a player should lose DTR #49

KennyDGP opened this issue Oct 17, 2015 · 2 comments

Comments

@KennyDGP
Copy link

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.

@Techcable
Copy link
Contributor

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

@Techcable Techcable changed the title Hardcore Factions Bug When a NPC is killed a player should lose DTR Jun 26, 2016
@nakitsuro
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants