added debug for redis player data
parent
289ef5440e
commit
5d2c9e249c
|
@ -8,6 +8,7 @@ import net.md_5.bungee.api.CommandSender;
|
|||
import net.md_5.bungee.api.chat.TextComponent;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
import net.md_5.bungee.api.plugin.Command;
|
||||
import org.redisson.api.RMap;
|
||||
|
||||
public class KrakatoapCommand extends Command {
|
||||
|
||||
|
@ -31,6 +32,20 @@ public class KrakatoapCommand extends Command {
|
|||
.getSendQueueMessages().size(), ProxySystem.getInstance()
|
||||
.getKraSocketClientProtocol()
|
||||
.getReceivedQueueMessages().size())));
|
||||
|
||||
String uuid = ProxySystem.getInstance().getFormatter()
|
||||
.formatUuid(player.getUniqueId().toString());
|
||||
|
||||
RMap<String, String> map = ProxySystem.getInstance().getRedisManager()
|
||||
.getRedissonClient()
|
||||
.getMap("player:" + uuid);
|
||||
|
||||
if (!map.isEmpty()) {
|
||||
player.sendMessage(new TextComponent("\n§7Redis player data:"));
|
||||
map.forEach((key, value) -> {
|
||||
player.sendMessage(new TextComponent("§7key: §e" + key + " §7value: §e" + value));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue