saving the player location when disconnecting for the next server join

master
alex 2022-04-10 20:17:50 +02:00
parent 8ed831dc7a
commit 3e329d99cd
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerQuitEvent;
import org.redisson.api.RMap;
import java.util.Map;
import java.util.Objects;
public class PlayerQuitListener implements Listener {
@ -25,7 +24,7 @@ public class PlayerQuitListener implements Listener {
* Saving the player location when disconnecting for the next server join
*/
if (!CloudNetDriver.getInstance().getComponentName().startsWith("Lobby")) {
Map<Object, Object> map = KrakatoaAPI.getInstance().getRedisManager().getPlayer(uuid);
RMap<Object, Object> map = KrakatoaAPI.getInstance().getRedisManager().getPlayer(uuid);
KrakatoaAPI.getInstance().getLogger().info("quit " + map.keySet());