save the player in the database again when the player leaves the server
parent
dfa48408d8
commit
10d6446688
|
@ -50,6 +50,8 @@ public class PlayerDisconnectListener implements Listener {
|
||||||
|
|
||||||
UpdateOptions options = new UpdateOptions().upsert(true);
|
UpdateOptions options = new UpdateOptions().upsert(true);
|
||||||
|
|
||||||
|
System.out.println("doc: " + document.keySet());
|
||||||
|
|
||||||
ProxySystem.getInstance().getMongoManager().getPlayers()
|
ProxySystem.getInstance().getMongoManager().getPlayers()
|
||||||
.updateOne(document, updates, options, (result, t) -> {
|
.updateOne(document, updates, options, (result, t) -> {
|
||||||
System.out.println(result == null);
|
System.out.println(result == null);
|
||||||
|
|
Loading…
Reference in New Issue