mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-31 07:40:16 +01:00
Add hidden config flag to be able disable lag adaption
globally.
This commit is contained in:
parent
1564115dd0
commit
afe98203f0
@ -24,7 +24,7 @@ public abstract class ACheckConfig implements ICheckConfig {
|
|||||||
*/
|
*/
|
||||||
public ACheckConfig(final ConfigFile config, final String pathPrefix){
|
public ACheckConfig(final ConfigFile config, final String pathPrefix){
|
||||||
debug = config.getBoolean(pathPrefix + ConfPaths.SUB_DEBUG, false);
|
debug = config.getBoolean(pathPrefix + ConfPaths.SUB_DEBUG, false);
|
||||||
lag = config.getBoolean(pathPrefix + ConfPaths.SUB_LAG, true);
|
lag = config.getBoolean(pathPrefix + ConfPaths.SUB_LAG, true) && config.getBoolean(ConfPaths.MISCELLANEOUS_LAG, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -54,6 +54,9 @@ public abstract class ConfPaths {
|
|||||||
private static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY = MISCELLANEOUS + "nomovedtooquickly.";
|
private static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY = MISCELLANEOUS + "nomovedtooquickly.";
|
||||||
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_ENABLED = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "enabled";
|
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_ENABLED = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "enabled";
|
||||||
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_USEPROXY = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "useproxy";
|
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_USEPROXY = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "useproxy";
|
||||||
|
|
||||||
|
/** TEMP: hidden flag to disable all lag adaption with one flag. */
|
||||||
|
public static final String MISCELLANEOUS_LAG = MISCELLANEOUS + "lag";
|
||||||
|
|
||||||
@GlobalConfig
|
@GlobalConfig
|
||||||
private static final String DATA = "data.";
|
private static final String DATA = "data.";
|
||||||
|
Loading…
Reference in New Issue
Block a user