mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-07 08:04:42 +02:00
This command probably works
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user