mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
New permission: essentials.vanish.pvp
If you don't have this permission you cannot PVP while vanished.
This commit is contained in:
parent
63149d0b50
commit
98d657ec4b
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ public class EssentialsEntityListener implements Listener
|
|||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
if (attacker.isHidden() && !attacker.isAuthorized("essentials.vanish.pvp"))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
||||
attacker.updateActivity(true);
|
||||
final List<String> commandList = attacker.getPowertool(attacker.getItemInHand());
|
||||
if (commandList != null && !commandList.isEmpty())
|
||||
|
|
Loading…
Reference in a new issue