mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 17:18:37 +01:00
Prevent that sign protection in EssProtect can be circumvented by placing signs.
This commit is contained in:
parent
8143154826
commit
2a4c26ee69
@ -85,7 +85,9 @@ public class EssentialsProtectBlockListener extends BlockListener
|
||||
&& user.isAuthorized("essentials.protect"))
|
||||
{
|
||||
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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user