From c08a1ccddbba4ef2bf59d1d647a8803ff3cf50a3 Mon Sep 17 00:00:00 2001 From: Elio <7284033+Elioby@users.noreply.github.com> Date: Sat, 29 Jan 2022 16:14:49 +0000 Subject: [PATCH] Resolves #1377 Without clearing the permissions cache, permissions that are removed will not be removed from the cache until reboot as they stay in the map. --- src/main/java/com/gamingmesh/jobs/PermissionManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gamingmesh/jobs/PermissionManager.java b/src/main/java/com/gamingmesh/jobs/PermissionManager.java index bbd5eab6..72548a3c 100644 --- a/src/main/java/com/gamingmesh/jobs/PermissionManager.java +++ b/src/main/java/com/gamingmesh/jobs/PermissionManager.java @@ -175,6 +175,7 @@ public class PermissionManager { if (permissions == null) { permissions = getAll(player); } else { + permissions.clear(); permissions.putAll(getAll(player)); } jPlayer.setPermissionsCache(permissions);