Compare commits

..

2 Commits

Author SHA1 Message Date
alex 3e329d99cd saving the player location when disconnecting for the next server join 2022-04-10 20:17:50 +02:00
alex 8ed831dc7a shutdown redis 2022-04-10 18:47:03 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -116,6 +116,7 @@ public class KrakatoaAPI extends JavaPlugin {
super.onDisable();
this.mongoManager.shutdown();
this.redisManager.shutdown();
this.kraSocketClient.getSocketClient().getConnection().close();
this.kraSocketClient.getSocketClient().getConnection().closeConnection(1, "");

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());