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());
Entity damagee = evt.getEntity();
if (!damager.hasPermission("saneeconomy.mobkills.use")) {
return;
}
if (!plugin.getKillAmounts().containsKey(getEntityType(damagee))) {
return;
}

View File

@ -3,4 +3,4 @@ description: A plugin to give players experience when they kill mobs.
version: 0.1.0
author: AppleDash
main: org.appledash.saneeconomymobkills.SaneEconomyMobKills
depend: [SaneEconomy]
depend: [SaneEconomy]