Finish cross-server respawning, close #123

This commit is contained in:
William committed 2022-08-23 00:27:04 +01:00
1 parent f0d9807ee4
commit 713bf2ea42
12 files changed
+70 -51

No files matched your search

@@ -649,10 +649,11 @@ public class SqLiteDatabase extends Database {
if (teleport != null) {
try {
try (PreparedStatement statement = getConnection().prepareStatement(formatStatementTables("""
INSERT INTO `%teleports_table%` (`player_uuid`, `destination_id`)
VALUES (?,?);"""))) {
INSERT INTO `%teleports_table%` (`player_uuid`, `destination_id`, `type`)
VALUES (?,?,?);"""))) {
statement.setString(1, user.uuid.toString());
statement.setInt(2, setPosition(teleport.target, connection));
statement.setInt(3, teleport.type.typeId);
statement.executeUpdate();
}