mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 03:10:27 +02:00
Cache permissions for net checks.
This commit is contained in:
parent
25e1e392a0
commit
56a9eecab3
|
@ -31,7 +31,9 @@ public class NetConfig extends ACheckConfig {
|
||||||
public final double soundDistanceSq;
|
public final double soundDistanceSq;
|
||||||
|
|
||||||
public NetConfig(final ConfigFile config) {
|
public NetConfig(final ConfigFile config) {
|
||||||
super(config, ConfPaths.NET);
|
super(config, ConfPaths.NET, new String[] {
|
||||||
|
Permissions.NET_FLYINGFREQUENCY, Permissions.NET_KEEPALIVEFREQUENCY
|
||||||
|
});
|
||||||
|
|
||||||
final ConfigFile globalConfig = ConfigManager.getConfigFile();
|
final ConfigFile globalConfig = ConfigManager.getConfigFile();
|
||||||
flyingFrequencyActive = config.getBoolean(ConfPaths.NET_FLYINGFREQUENCY_ACTIVE);
|
flyingFrequencyActive = config.getBoolean(ConfPaths.NET_FLYINGFREQUENCY_ACTIVE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user