mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 12:02:53 +00:00
Prevent that sign protection in EssProtect can be circumvented by placing signs.
This commit is contained in:
parent
8143154826
commit
2a4c26ee69
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ public class EssentialsProtectBlockListener extends BlockListener
|
||||||
&& user.isAuthorized("essentials.protect"))
|
&& user.isAuthorized("essentials.protect"))
|
||||||
{
|
{
|
||||||
protect.add(blockPlaced);
|
protect.add(blockPlaced);
|
||||||
if (prot.getSettingBool(ProtectConfig.protect_against_signs))
|
if (prot.getSettingBool(ProtectConfig.protect_against_signs)
|
||||||
|
&& event.getBlockAgainst().getType() != Material.SIGN_POST
|
||||||
|
&& event.getBlockAgainst().getType() != Material.WALL_SIGN)
|
||||||
{
|
{
|
||||||
protect.add(event.getBlockAgainst());
|
protect.add(event.getBlockAgainst());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue