Another batch of preemptive bugfixing

This commit is contained in:
ceikry 2021-07-26 07:33:07 -05:00
parent 62ab9e80a9
commit 13dce7226e
19 changed files with 84 additions and 84 deletions

View file

@ -52,12 +52,4 @@ public final class SQLTable {
return updated;
}
/**
* Gets the columns.
* @return The columns.
*/
public SQLColumn[] getColumns() {
return columns;
}
}

View file

@ -31,12 +31,16 @@ public final class WorldListSQLHandler extends SQLEntryHandler<GameServer> {
* Clears the world list.
*/
public static void clearWorldList() {
Connection connection = SQLManager.getConnection();
if(connection == null) return;
try {
Connection connection = SQLManager.getConnection();
PreparedStatement statement = connection.prepareStatement("DELETE FROM " + TABLE);
statement.executeUpdate();
} catch (SQLException e) {
} catch (Exception e) {
e.printStackTrace();
SQLManager.close(connection);
} finally {
SQLManager.close(connection);
}
}