mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
edit home, warp commands, manager methods that accept warps/homes
This commit is contained in:
11 files changed
+299
-443
No files matched your search
@@ -466,8 +466,7 @@ public class SqLiteDatabase extends Database {
|
||||
resultSet.getTimestamp("timestamp").toInstant(),
|
||||
resultSet.getString("tags")),
|
||||
UUID.fromString(resultSet.getString("home_uuid")),
|
||||
new User(UUID.fromString(resultSet.getString("owner_uuid")),
|
||||
resultSet.getString("owner_username")),
|
||||
user,
|
||||
resultSet.getBoolean("public")));
|
||||
}
|
||||
}
|
||||
@@ -624,9 +623,9 @@ public class SqLiteDatabase extends Database {
|
||||
SET `home_slots`=?, `ignoring_requests`=?, `rtp_cooldown`=?
|
||||
WHERE `uuid`=?"""))) {
|
||||
|
||||
statement.setInt(1, savedUser.homeSlots());
|
||||
statement.setBoolean(2, savedUser.ignoringTeleports());
|
||||
statement.setTimestamp(3, Timestamp.from(savedUser.rtpCooldown()));
|
||||
statement.setInt(1, savedUser.getHomeSlots());
|
||||
statement.setBoolean(2, savedUser.isIgnoringTeleports());
|
||||
statement.setTimestamp(3, Timestamp.from(savedUser.getRtpCooldown()));
|
||||
statement.setString(4, savedUser.getUserUuid().toString());
|
||||
statement.executeUpdate();
|
||||
} catch (SQLException e) {
|
||||
|
||||
Reference in new issue
Block a user