mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 22:16:34 +00:00
Fix #49
This commit is contained in:
1 parent
d2442e4433
commit
df429ee99f
4 files changed
+6
-7
No files matched your search
@@ -23,7 +23,6 @@ public class TeleportManager {
|
||||
|
||||
private static TeleportationPoint spawnLocation;
|
||||
|
||||
// todo this doesnt seem to work cross server
|
||||
public static void teleportPlayer(Player player, String targetPlayer, Connection connection) throws SQLException {
|
||||
DataManager.setPlayerLastPosition(player, new TeleportationPoint(player.getLocation(),
|
||||
HuskHomes.getSettings().getServerID()), connection);
|
||||
@@ -60,6 +59,8 @@ public class TeleportManager {
|
||||
}
|
||||
} catch (SQLException e) {
|
||||
plugin.getLogger().log(Level.SEVERE, "An SQL exception occurred!", e);
|
||||
} catch (Exception e) {
|
||||
MessageManager.sendMessage(p, "error_invalid_on_arrival");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user