mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 07:59:44 +00:00
Make 'Prevent sign destruction' message print on debug to prevent spam.
This commit is contained in:
parent
2e903acbaa
commit
ab490cd588
1 changed files with 3 additions and 1 deletions
|
@ -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)) {
|
||||
if (ess.getSettings().isDebug()) {
|
||||
LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue