This command probably works

This commit is contained in:
t00thpick1
2016-04-23 00:24:05 -04:00
parent 8822b4edae
commit dcd79e87e1
5 changed files with 134 additions and 0 deletions

View File

@ -1417,4 +1417,23 @@ public final class SQLDatabaseManager implements DatabaseManager {
LOAD,
SAVE;
}
public void resetMobHealthSettings() {
PreparedStatement statement = null;
Connection connection = null;
try {
connection = getConnection(PoolIdentifier.MISC);
statement = connection.prepareStatement("UPDATE " + tablePrefix + "huds SET mobhealthbar = ?");
statement.setString(1, Config.getInstance().getMobHealthbarDefault().toString());
statement.executeUpdate();
}
catch (SQLException ex) {
printErrors(ex);
}
finally {
tryClose(statement);
tryClose(connection);
}
}
}