Fix block dump not respecting the checks.debug and blockbreak.debug

flags.
This commit is contained in:
asofold 2013-03-06 18:54:11 +01:00
parent ce3d1ba89c
commit 2d5dd8770d
2 changed files with 4 additions and 1 deletions

View File

@ -756,7 +756,7 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
// Debug information about unknown blocks. // Debug information about unknown blocks.
// (Probably removed later.) // (Probably removed later.)
ConfigFile config = ConfigManager.getConfigFile(); ConfigFile config = ConfigManager.getConfigFile();
BlockProperties.dumpBlocks(config.getBoolean(ConfPaths.BLOCKBREAK_FASTBREAK_DEBUG, false) || config.getBoolean(ConfPaths.BLOCKBREAK, false)); BlockProperties.dumpBlocks(config.getBoolean(ConfPaths.BLOCKBREAK_FASTBREAK_DEBUG, config.getBoolean(ConfPaths.BLOCKBREAK_DEBUG, config.getBoolean(ConfPaths.CHECKS_DEBUG, false))));
} }
}); });
} }

View File

@ -89,6 +89,9 @@ public abstract class ConfPaths {
*/ */
public static final String BLOCKBREAK = CHECKS + "blockbreak."; public static final String BLOCKBREAK = CHECKS + "blockbreak.";
public static final String BLOCKBREAK_DEBUG = BLOCKBREAK + "debug";
private static final String BLOCKBREAK_DIRECTION = BLOCKBREAK + "direction."; private static final String BLOCKBREAK_DIRECTION = BLOCKBREAK + "direction.";
public static final String BLOCKBREAK_DIRECTION_CHECK = BLOCKBREAK_DIRECTION + "active"; public static final String BLOCKBREAK_DIRECTION_CHECK = BLOCKBREAK_DIRECTION + "active";
public static final String BLOCKBREAK_DIRECTION_ACTIONS = BLOCKBREAK_DIRECTION + "actions"; public static final String BLOCKBREAK_DIRECTION_ACTIONS = BLOCKBREAK_DIRECTION + "actions";