mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Now using Bukkit's built-in plugin update system, thanks TnT.
This commit is contained in:
1 parent
4e54638e6c
commit
1d1bb0a962
2 files changed
+49
-16
No files matched your search
@@ -31,11 +31,14 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
public class Configuration {
|
||||
private File configFile = new File("plugins/AntiCheat/config.yml");
|
||||
private File bukkitFile = new File("bukkit.yml");
|
||||
private FileConfiguration config;
|
||||
private FileConfiguration bukkit;
|
||||
private boolean logConsole;
|
||||
private boolean logXRay;
|
||||
private boolean autoUpdate;
|
||||
private boolean verboseStartup;
|
||||
private String updateFolder;
|
||||
private List<String> worlds = new ArrayList<String>();
|
||||
|
||||
public Configuration()
|
||||
@@ -73,11 +76,18 @@ public class Configuration {
|
||||
public boolean verboseStartup()
|
||||
{
|
||||
return verboseStartup;
|
||||
}
|
||||
}
|
||||
|
||||
public String updateFolder()
|
||||
{
|
||||
return updateFolder;
|
||||
}
|
||||
|
||||
public final void load()
|
||||
{
|
||||
config = YamlConfiguration.loadConfiguration(configFile);
|
||||
bukkit = YamlConfiguration.loadConfiguration(bukkitFile);
|
||||
updateFolder = bukkit.getString("settings.update-folder");
|
||||
if(config.getString("Logging.Log to console") != null)
|
||||
{
|
||||
boolean b = config.getBoolean("Logging.Log to console");
|
||||
|
||||
Reference in new issue
Block a user