Prevent that sign protection in EssProtect can be circumvented by placing signs.

This commit is contained in:
snowleo 2011-11-17 16:20:31 +01:00
parent 8143154826
commit 2a4c26ee69

View File

@ -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());
}