mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-16 07:35:38 +01:00
Make {player} referencing powertools activate only when the user has powertools enabled (#1474)
This commit is contained in:
parent
09eecb1c3b
commit
eb341c0704
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user