Make {player} referencing powertools activate only when the user has powertools enabled (#1474)

This commit is contained in:
flcmc 2017-08-13 11:03:46 -04:00 committed by Ali 'SupaHam' M
parent 09eecb1c3b
commit eb341c0704

View File

@ -77,7 +77,9 @@ public class EssentialsEntityListener implements Listener {
event.setCancelled(true);
}
onPlayerVsPlayerPowertool(event, defender, attacker);
if (attacker.arePowerToolsEnabled()) {
onPlayerVsPlayerPowertool(event, defender, attacker);
}
}
private void onPlayerVsPlayerPowertool(final EntityDamageByEntityEvent event, final Player defender, final User attacker) {