mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Well this should fix the issues with config, but I hate it.
This commit is contained in:
@ -9,7 +9,7 @@ import com.gmail.nossr50.config.Config;
|
||||
|
||||
public class SQLConversionTask implements Runnable {
|
||||
private final mcMMO plugin;
|
||||
private String tablePrefix = Config.getMySQLTablePrefix();
|
||||
private String tablePrefix = Config.getInstance().getMySQLTablePrefix();
|
||||
|
||||
public SQLConversionTask(mcMMO plugin) {
|
||||
this.plugin = plugin;
|
||||
|
@ -17,14 +17,14 @@ public class SpoutStart implements Runnable{
|
||||
@Override
|
||||
public void run() {
|
||||
if (plugin.getServer().getPluginManager().getPlugin("Spout") != null) {
|
||||
Config.spoutEnabled = true;
|
||||
Config.getInstance().spoutEnabled = true;
|
||||
}
|
||||
else {
|
||||
Config.spoutEnabled = false;
|
||||
Config.getInstance().spoutEnabled = false;
|
||||
}
|
||||
|
||||
//Spout Stuff
|
||||
if (Config.spoutEnabled) {
|
||||
if (Config.getInstance().spoutEnabled) {
|
||||
SpoutStuff.setupSpoutConfigs();
|
||||
SpoutStuff.registerCustomEvent();
|
||||
SpoutStuff.extractFiles(); //Extract source materials
|
||||
|
Reference in New Issue
Block a user