redis test

master
Alex 2022-03-27 19:54:05 +02:00
parent c280a796f8
commit 9ca5712588
2 changed files with 5 additions and 1 deletions

View File

@ -86,7 +86,7 @@ public class ProxySystem extends Plugin {
this.kraSocketClient.getSocketClient().getConnection().closeConnection(1, "");
this.mongoManager.getMongoClient().close();
//this.redisManager.getConnection().close();
//this.redisManager.getClient().shutdown();

View File

@ -133,9 +133,13 @@ public class PostLoginListener implements Listener {
RBucket<PlayerTest> bucket = ProxySystem.getInstance().getRedisManager().getRedissonClient()
.getBucket("player:" + proxiedPlayer.getUniqueId().toString());
ProxySystem.getInstance().getLogger().info("here1");
if (bucket != null) {
PlayerTest playerTest = bucket.get();
ProxySystem.getInstance().getLogger().info("here2");
if (playerTest == null) {
bucket.set(new PlayerTest(proxiedPlayer.getName(), 250, "scooter"));