mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Config files generate properly on reload.
This commit is contained in:
1 parent
6aa10fca11
commit
9de009cc44
2 files changed
+20
-10
No files matched your search
@@ -71,7 +71,7 @@ public class Configuration {
|
||||
|
||||
public boolean alertXRay()
|
||||
{
|
||||
return logXRay;
|
||||
return alertXRay;
|
||||
}
|
||||
|
||||
public boolean autoUpdate()
|
||||
@@ -91,6 +91,7 @@ public class Configuration {
|
||||
|
||||
public final void load()
|
||||
{
|
||||
Anticheat.checkConfig();
|
||||
config = YamlConfiguration.loadConfiguration(configFile);
|
||||
bukkit = YamlConfiguration.loadConfiguration(bukkitFile);
|
||||
updateFolder = bukkit.getString("settings.update-folder");
|
||||
@@ -163,6 +164,11 @@ public class Configuration {
|
||||
return worlds;
|
||||
}
|
||||
|
||||
public File getConfigFile()
|
||||
{
|
||||
return configFile;
|
||||
}
|
||||
|
||||
public boolean checkInWorld(World world)
|
||||
{
|
||||
return worlds.contains(world.getName());
|
||||
|
||||
Reference in new issue
Block a user