Fix Cache not clearing on PlayerDataRemove request

This commit is contained in:
Kam committed 2023-06-16 11:52:35 -04:00
1 parent 7fbcbf60de
commit fd52715384
2 files changed
+12 -4

No files matched your search

@@ -260,6 +260,12 @@ public class PlayerDataController {
}
}
public void removePlayerDataCache(final String uuid) {
synchronized (playerDataCache) {
playerDataCache.remove(uuid);
}
}
public void clearCache() {
synchronized (playerDataCache) {
playerDataCache.clear();