forked from LogBlock/LogBlock
Fixed updater
This commit is contained in:
@@ -88,6 +88,7 @@ class Updater
|
|||||||
}
|
}
|
||||||
if (config.getString("version").compareTo("1.27") < 0) {
|
if (config.getString("version").compareTo("1.27") < 0) {
|
||||||
log.info("[LogBlock] Updating tables to 1.27 ...");
|
log.info("[LogBlock] Updating tables to 1.27 ...");
|
||||||
|
if (logblock.getConfig().logChat) {
|
||||||
final Connection conn = logblock.getConnection();
|
final Connection conn = logblock.getConnection();
|
||||||
try {
|
try {
|
||||||
conn.setAutoCommit(true);
|
conn.setAutoCommit(true);
|
||||||
@@ -99,6 +100,7 @@ class Updater
|
|||||||
Bukkit.getLogger().log(Level.SEVERE, "[LogBlock Updater] Error: ", ex);
|
Bukkit.getLogger().log(Level.SEVERE, "[LogBlock Updater] Error: ", ex);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
config.setProperty("version", "1.27");
|
config.setProperty("version", "1.27");
|
||||||
}
|
}
|
||||||
if (config.getString("version").compareTo("1.30") < 0) {
|
if (config.getString("version").compareTo("1.30") < 0) {
|
||||||
|
Reference in New Issue
Block a user