mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 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
@@ -26,7 +26,7 @@ public class HuskHomesCommand extends CommandBase implements TabCompleter {
|
||||
.append("[").append(plugin.getDescription().getDescription()).append("](gray)\n")
|
||||
.append("[• Author:](white) [William278](gray show_text=&7Click to pay a visit open_url=https://youtube.com/William27528)\n")
|
||||
.append("[• Contributors:](white) [imDaniX](gray show_text=&7Code, refactoring), [Log1x](gray show_text=&7Code)\n")
|
||||
.append("[• Translators:](white) [SnivyJ](gray show_text=&7Simplified Chinese, zh-cn), [Villag3r_](gray show_text=&7Italian, it-it), [ReferTV](gray show_text=&7Polish, pl) \n")
|
||||
.append("[• Translators:](white) [SnivyJ](gray show_text=&7Simplified Chinese, zh-cn), [TonyPak](gray show_text=&7Traditional Chinese, zh-tw), [Villag3r_](gray show_text=&7Italian, it-it), [ReferTV](gray show_text=&7Polish, pl) \n")
|
||||
.append("[• Help Wiki:](white) [[Link]](#00fb9a show_text=&7Click to open link open_url=https://github.com/WiIIiam278/HuskHomes2/wiki/)\n")
|
||||
.append("[• Report Issues:](white) [[Link]](#00fb9a show_text=&7Click to open link open_url=https://github.com/WiIIiam278/HuskHomes2/issues)\n")
|
||||
.append("[• Support Discord:](white) [[Link]](#00fb9a show_text=&7Click to join open_url=https://discord.gg/tVYhJfyDWG)");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -112,17 +112,13 @@ public class SQLite 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