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;
|
||||||
}
|
}
|
||||||
|
@ -3,4 +3,4 @@ description: A plugin to give players experience when they kill mobs.
|
|||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
author: AppleDash
|
author: AppleDash
|
||||||
main: org.appledash.saneeconomymobkills.SaneEconomyMobKills
|
main: org.appledash.saneeconomymobkills.SaneEconomyMobKills
|
||||||
depend: [SaneEconomy]
|
depend: [SaneEconomy]
|
||||||
|
Loading…
Reference in New Issue
Block a user