Fix maven some more

This commit is contained in:
Sn0wStorm
2015-01-09 02:28:04 +01:00
parent 9139d52089
commit 224e096448
2 changed files with 7 additions and 16 deletions
+3 -3
View File
@@ -36,6 +36,7 @@ import com.dre.brewery.integration.LogBlockBarrel;
public class P extends JavaPlugin {
public static P p;
public static String configVersion = "1.3";
public static boolean debug;
public static boolean useUUID;
@@ -197,10 +198,9 @@ public class P extends JavaPlugin {
// Check if config is the newest version
String version = config.getString("version", null);
if (version != null) {
String currentVersion = getDescription().getVersion();
if (!version.equals(currentVersion)) {
if (!version.equals(configVersion)) {
new ConfigUpdater(file).update(version, language);
P.p.log("Config Updated to version: " + currentVersion);
P.p.log("Config Updated to version: " + configVersion);
config = YamlConfiguration.loadConfiguration(file);
}
}