mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-26 17:21:32 +01:00
Make 'Prevent sign destruction' message print on debug to prevent spam.
This commit is contained in:
parent
2e903acbaa
commit
ab490cd588
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user