mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-29 05:26:16 +01: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());
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user