mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
refactor + config template
This commit is contained in:
1 parent
45516e54a5
commit
1987acd70a
7 files changed
+88
-36
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package com.github.alathra.siegeengines.config;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
|
||||
import com.github.alathra.siegeengines.SiegeEngines;
|
||||
|
||||
|
||||
public class Config {
|
||||
|
||||
private static FileConfiguration config;
|
||||
|
||||
// global config version
|
||||
public static int configVersion = 1;
|
||||
|
||||
public static void initConfigVals() {
|
||||
//init config
|
||||
config = SiegeEngines.getInstance().getConfig();
|
||||
}
|
||||
|
||||
public static void reload() {
|
||||
// put whatever you want here to run config-wise when plugin reloads
|
||||
initConfigVals();
|
||||
}
|
||||
|
||||
private FileConfiguration getConfig() {
|
||||
return config;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user