mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
home, sethome and homelist implementation
This commit is contained in:
1 parent
5e793e8ec7
commit
0e33fb8014
18 files changed
+349
-138
No files matched your search
@@ -205,7 +205,7 @@ public class MySqlDatabase extends Database {
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
try (Connection connection = getConnection()) {
|
||||
try (PreparedStatement statement = connection.prepareStatement(formatStatementTables("""
|
||||
SELECT `uuid`, `username`
|
||||
SELECT `uuid`, `username`, `home_slots`, `ignoring_requests`, `rtp_cooldown`
|
||||
FROM `%players_table%`
|
||||
WHERE `username`=?"""))) {
|
||||
statement.setString(1, name);
|
||||
@@ -232,7 +232,7 @@ public class MySqlDatabase extends Database {
|
||||
return CompletableFuture.supplyAsync(() -> {
|
||||
try (Connection connection = getConnection()) {
|
||||
try (PreparedStatement statement = connection.prepareStatement(formatStatementTables("""
|
||||
SELECT `uuid`, `username`
|
||||
SELECT `uuid`, `username`, `home_slots`, `ignoring_requests`, `rtp_cooldown`
|
||||
FROM `%players_table%`
|
||||
WHERE `uuid`=?"""))) {
|
||||
|
||||
@@ -445,7 +445,7 @@ public class MySqlDatabase extends Database {
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
getLogger().log(Level.SEVERE, "Failed to query a player's home by UUID", e);
|
||||
getLogger().log(Level.SEVERE, "Failed to query a player's home by uuid", e);
|
||||
}
|
||||
return Optional.empty();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user