mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Add traditional chinese (zh-tw)
This commit is contained in:
1 parent
b887edd8d5
commit
ebac0b624b
4 files changed
+128
-15
No files matched your search
@@ -101,17 +101,13 @@ public class MySQL extends Database {
|
||||
@Override
|
||||
public void load() {
|
||||
connection = getConnection();
|
||||
try {
|
||||
Statement statement = connection.createStatement();
|
||||
try(Statement statement = connection.createStatement()) {
|
||||
for (String tableCreationStatement : SQL_SETUP_STATEMENTS) {
|
||||
statement.execute(tableCreationStatement);
|
||||
}
|
||||
statement.close();
|
||||
} catch (SQLException exception) {
|
||||
plugin.getLogger().log(Level.SEVERE, "An error occurred creating tables: ", exception);
|
||||
exception.printStackTrace();
|
||||
} catch (SQLException e) {
|
||||
plugin.getLogger().log(Level.SEVERE, "An error occurred creating tables: ", e);
|
||||
}
|
||||
|
||||
initialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user