mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Save and invalidate player on quit on all platforms
This commit is contained in:
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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user