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 earth.krakatao.protocol.KraSocketClientProtocolStatus;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.security.SecureRandom;
|
import java.security.SecureRandom;
|
||||||
|
import java.util.Objects;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import net.krakatoa.proxy.ProxySystem;
|
import net.krakatoa.proxy.ProxySystem;
|
||||||
|
@ -80,9 +81,11 @@ public class PostLoginListener implements Listener {
|
||||||
map.put("voiceWebCode", "voiceWebCode");
|
map.put("voiceWebCode", "voiceWebCode");
|
||||||
|
|
||||||
document.forEach((key, value) -> {
|
document.forEach((key, value) -> {
|
||||||
ProxySystem.getInstance().getLogger()
|
if (!Objects.equals(key, "_id")) {
|
||||||
.info("key " + key + " value " + value.toString());
|
ProxySystem.getInstance().getLogger()
|
||||||
map.put(key, value.toString());
|
.info("key " + key + " value " + value.toString());
|
||||||
|
map.put(key, value.toString());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
ProxySystem.getInstance().getLogger().info("PUT !");
|
ProxySystem.getInstance().getLogger().info("PUT !");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue