mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-02 05:21:52 +01:00
Reorder perm check in antibuild
This commit is contained in:
parent
1ad8c95e3e
commit
a836576211
@ -85,8 +85,8 @@ public class EssentialsAntiBuildListener implements Listener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user.isAuthorized("essentials.protect.alerts.notrigger")
|
if (prot.checkProtectionItems(AntiBuildConfig.alert_on_placement, id)
|
||||||
&& prot.checkProtectionItems(AntiBuildConfig.alert_on_placement, id))
|
&& !user.isAuthorized("essentials.protect.alerts.notrigger"))
|
||||||
{
|
{
|
||||||
prot.getEssentialsConnect().alert(user, blockPlaced.getType().toString(), _("alertPlaced"));
|
prot.getEssentialsConnect().alert(user, blockPlaced.getType().toString(), _("alertPlaced"));
|
||||||
}
|
}
|
||||||
@ -122,8 +122,8 @@ public class EssentialsAntiBuildListener implements Listener
|
|||||||
}
|
}
|
||||||
final Material type = block.getType();
|
final Material type = block.getType();
|
||||||
|
|
||||||
if (!user.isAuthorized("essentials.protect.alerts.notrigger")
|
if (prot.checkProtectionItems(AntiBuildConfig.alert_on_break, typeId)
|
||||||
&& prot.checkProtectionItems(AntiBuildConfig.alert_on_break, typeId))
|
&& !user.isAuthorized("essentials.protect.alerts.notrigger"))
|
||||||
{
|
{
|
||||||
prot.getEssentialsConnect().alert(user, type.toString(), _("alertBroke"));
|
prot.getEssentialsConnect().alert(user, type.toString(), _("alertBroke"));
|
||||||
}
|
}
|
||||||
@ -190,8 +190,8 @@ public class EssentialsAntiBuildListener implements Listener
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item != null
|
if (item != null
|
||||||
&& !user.isAuthorized("essentials.protect.alerts.notrigger")
|
&& prot.checkProtectionItems(AntiBuildConfig.alert_on_use, item.getTypeId())
|
||||||
&& prot.checkProtectionItems(AntiBuildConfig.alert_on_use, item.getTypeId()))
|
&& !user.isAuthorized("essentials.protect.alerts.notrigger"))
|
||||||
{
|
{
|
||||||
prot.getEssentialsConnect().alert(user, item.getType().toString(), _("alertUsed"));
|
prot.getEssentialsConnect().alert(user, item.getType().toString(), _("alertUsed"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user