mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-11 17:21:29 +01:00
Fix block dump not respecting the checks.debug and blockbreak.debug
flags.
This commit is contained in:
parent
ce3d1ba89c
commit
2d5dd8770d
@ -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))));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user