Improve MobKills with permissions!

This commit is contained in:
AppleDash 2017-07-03 03:44:42 -04:00
parent 0506af01cc
commit 5574fcbac3
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,10 @@ public class EntityDamageListener implements Listener {
Player damager = ((Player) evt.getDamager()); Player damager = ((Player) evt.getDamager());
Entity damagee = evt.getEntity(); Entity damagee = evt.getEntity();
if (!damager.hasPermission("saneeconomy.mobkills.use")) {
return;
}
if (!plugin.getKillAmounts().containsKey(getEntityType(damagee))) { if (!plugin.getKillAmounts().containsKey(getEntityType(damagee))) {
return; return;
} }