mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed undesirable FlatFileStuff access with MySQL enabled
This commit is contained in:
parent
7d17bd7dd1
commit
2fad8f2ad7
@ -9,10 +9,10 @@ import com.gmail.nossr50.mcMMO;
|
|||||||
|
|
||||||
public abstract class ConfigLoader {
|
public abstract class ConfigLoader {
|
||||||
|
|
||||||
protected static File configFile;
|
protected File configFile;
|
||||||
protected static File dataFolder;
|
protected File dataFolder;
|
||||||
protected final mcMMO plugin;
|
protected final mcMMO plugin;
|
||||||
protected static FileConfiguration config;
|
protected FileConfiguration config;
|
||||||
|
|
||||||
public ConfigLoader(mcMMO plugin, String fileName){
|
public ConfigLoader(mcMMO plugin, String fileName){
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
@ -28,7 +28,7 @@ public abstract class ConfigLoader {
|
|||||||
/**
|
/**
|
||||||
* Save this config file.
|
* Save this config file.
|
||||||
*/
|
*/
|
||||||
private static void saveConfig() {
|
private void saveConfig() {
|
||||||
try {
|
try {
|
||||||
config.save(configFile);
|
config.save(configFile);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user