Make 'Prevent sign destruction' message print on debug to prevent spam.

This commit is contained in:
Ali Moghnieh 2016-01-02 11:36:48 +00:00
parent 2e903acbaa
commit ab490cd588

View File

@ -46,7 +46,9 @@ public class SignBlockListener implements Listener {
public boolean protectSignsAndBlocks(final Block block, final Player player) throws MaxMoneyException {
// prevent any signs be broken by destroying the block they are attached to
if (EssentialsSign.checkIfBlockBreaksSigns(block)) {
LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
if (ess.getSettings().isDebug()) {
LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
}
return true;
}