mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +00:00
Make sure the reload command updates magic values
This commit is contained in:
1 parent
6ddd6d3ecb
commit
3635c840f1
1 file changed
+6
-1
@@ -32,11 +32,13 @@ import net.gravitydevelopment.anticheat.config.holders.yaml.YamlRulesHolder;
|
|||||||
import net.gravitydevelopment.anticheat.config.providers.Groups;
|
import net.gravitydevelopment.anticheat.config.providers.Groups;
|
||||||
import net.gravitydevelopment.anticheat.config.providers.Levels;
|
import net.gravitydevelopment.anticheat.config.providers.Levels;
|
||||||
import net.gravitydevelopment.anticheat.config.providers.Rules;
|
import net.gravitydevelopment.anticheat.config.providers.Rules;
|
||||||
|
import net.gravitydevelopment.anticheat.manage.AnticheatManager;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
public class Configuration {
|
public class Configuration {
|
||||||
|
|
||||||
|
private AnticheatManager manager;
|
||||||
private Config config;
|
private Config config;
|
||||||
private Enterprise enterprise;
|
private Enterprise enterprise;
|
||||||
private Lang lang;
|
private Lang lang;
|
||||||
@@ -50,7 +52,7 @@ public class Configuration {
|
|||||||
private ArrayList<ConfigurationTable> dbfiles;
|
private ArrayList<ConfigurationTable> dbfiles;
|
||||||
|
|
||||||
public Configuration(AntiCheat plugin) {
|
public Configuration(AntiCheat plugin) {
|
||||||
|
manager = plugin.getManager();
|
||||||
config = new Config(plugin, this);
|
config = new Config(plugin, this);
|
||||||
plugin.setVerbose(config.verboseStartup.getValue());
|
plugin.setVerbose(config.verboseStartup.getValue());
|
||||||
// Now load others
|
// Now load others
|
||||||
@@ -107,6 +109,9 @@ public class Configuration {
|
|||||||
for (ConfigurationTable table : dbfiles) {
|
for (ConfigurationTable table : dbfiles) {
|
||||||
table.load();
|
table.load();
|
||||||
}
|
}
|
||||||
|
if (manager.getBackend() != null) {
|
||||||
|
manager.getBackend().updateMagic(magic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkReload(ConfigurationFile file) {
|
private void checkReload(ConfigurationFile file) {
|
||||||
|
|||||||
Reference in new issue
Block a user