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());
|
||||
Entity damagee = evt.getEntity();
|
||||
|
||||
if (!damager.hasPermission("saneeconomy.mobkills.use")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!plugin.getKillAmounts().containsKey(getEntityType(damagee))) {
|
||||
return;
|
||||
}
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user