Save and invalidate player on quit on all platforms

This commit is contained in:
Draycia authored and Josua Parks committed 2021-11-24 21:26:29 -08:00
1 parent 15c994bdbd
commit 20e384522e
9 files changed
+306 -36

No files matched your search

@@ -150,7 +150,7 @@ public class JSONUserManager implements UserManager<CarbonPlayerCommon> {
}
@Override
public CompletableFuture<ComponentPlayerResult<CarbonPlayerCommon>> saveAndInvalidatePlayer(CarbonPlayerCommon player) {
public CompletableFuture<ComponentPlayerResult<CarbonPlayerCommon>> saveAndInvalidatePlayer(final CarbonPlayerCommon player) {
return this.savePlayer(player).thenApply(result -> {
this.userCache.remove(player.uuid());