add player to redis when player enters server
parent
dfa7d25559
commit
289ef5440e
|
@ -8,6 +8,7 @@ import earth.krakatao.protocol.KraSocketClientProtocolMessage;
|
|||
import earth.krakatao.protocol.KraSocketClientProtocolStatus;
|
||||
import java.io.IOException;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.function.Consumer;
|
||||
import net.krakatoa.proxy.ProxySystem;
|
||||
|
@ -80,9 +81,11 @@ public class PostLoginListener implements Listener {
|
|||
map.put("voiceWebCode", "voiceWebCode");
|
||||
|
||||
document.forEach((key, value) -> {
|
||||
if (!Objects.equals(key, "_id")) {
|
||||
ProxySystem.getInstance().getLogger()
|
||||
.info("key " + key + " value " + value.toString());
|
||||
map.put(key, value.toString());
|
||||
}
|
||||
});
|
||||
ProxySystem.getInstance().getLogger().info("PUT !");
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue