1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00
Without clearing the permissions cache, permissions that are removed will not be removed from the cache until reboot as they stay in the map.
This commit is contained in:
Elio 2022-01-29 16:14:49 +00:00 committed by GitHub
parent 55a0705826
commit c08a1ccddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,6 +175,7 @@ public class PermissionManager {
if (permissions == null) {
permissions = getAll(player);
} else {
permissions.clear();
permissions.putAll(getAll(player));
}
jPlayer.setPermissionsCache(permissions);