mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Teleport types, cross-server respawn handling
This commit is contained in:
1 parent
8dff4a123a
commit
f74f77c62d
17 files changed
+192
-33
No files matched your search
@@ -6,6 +6,7 @@ import net.william278.huskhomes.player.User;
|
||||
import net.william278.huskhomes.player.UserData;
|
||||
import net.william278.huskhomes.position.*;
|
||||
import net.william278.huskhomes.teleport.Teleport;
|
||||
import net.william278.huskhomes.teleport.TeleportType;
|
||||
import net.william278.huskhomes.util.Logger;
|
||||
import net.william278.huskhomes.util.ResourceReader;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -581,7 +582,8 @@ public class MySqlDatabase extends Database {
|
||||
resultSet.getFloat("pitch"),
|
||||
new World(resultSet.getString("world_name"),
|
||||
UUID.fromString(resultSet.getString("world_uuid"))),
|
||||
new Server(resultSet.getString("server_name")))));
|
||||
new Server(resultSet.getString("server_name"))),
|
||||
TeleportType.getTeleportType(resultSet.getInt("type")).orElse(TeleportType.TELEPORT)));
|
||||
}
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
|
||||
Reference in new issue
Block a user