mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-09-24 20:53:02 +02:00
Improve MobKills with permissions!
This commit is contained in:
parent
0506af01cc
commit
5574fcbac3
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user