Fixed updater

This commit is contained in:
Robin Kupper
2011-10-06 11:58:38 +02:00
parent 6098f8c81e
commit 0f9eaa0537

View File

@@ -88,6 +88,7 @@ class Updater
}
if (config.getString("version").compareTo("1.27") < 0) {
log.info("[LogBlock] Updating tables to 1.27 ...");
if (logblock.getConfig().logChat) {
final Connection conn = logblock.getConnection();
try {
conn.setAutoCommit(true);
@@ -99,6 +100,7 @@ class Updater
Bukkit.getLogger().log(Level.SEVERE, "[LogBlock Updater] Error: ", ex);
return false;
}
}
config.setProperty("version", "1.27");
}
if (config.getString("version").compareTo("1.30") < 0) {