mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-27 01:32:11 +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 {
|
public boolean protectSignsAndBlocks(final Block block, final Player player) throws MaxMoneyException {
|
||||||
// prevent any signs be broken by destroying the block they are attached to
|
// prevent any signs be broken by destroying the block they are attached to
|
||||||
if (EssentialsSign.checkIfBlockBreaksSigns(block)) {
|
if (EssentialsSign.checkIfBlockBreaksSigns(block)) {
|
||||||
|
if (ess.getSettings().isDebug()) {
|
||||||
LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
|
LOGGER.log(Level.INFO, "Prevented that a block was broken next to a sign.");
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user