saving the player location when disconnecting for the next server join

master
alex 2022-04-10 18:37:03 +02:00
parent 319407ecc5
commit 49c40a87bb
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ public class PlayerQuitListener implements Listener {
if (!CloudNetDriver.getInstance().getComponentName().startsWith("Lobby")) {
Map<Object, Object> map = KrakatoaAPI.getInstance().getRedisManager().getPlayer(uuid);
KrakatoaAPI.getInstance().getLogger().info("quit " + map.keySet());
if (!map.isEmpty()) {
map.put("lastLocation", round(player.getLocation().getX()) + " " + round(player.getLocation().getY()) + " " + round(player.getLocation().getZ()));
}