Skip to content

Commit b41f01a

Browse files
authored
Add ClearPermission method to PermissionManager
1 parent 4ca702b commit b41f01a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

managed/src/SwiftlyS2.Core/Modules/Permissions/PermissionManager.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,14 @@ public void RemoveSubPermission( string permission, string subPermission )
251251

252252
_queryCache = _queryCache.Clear();
253253
}
254-
}
254+
255+
public void ClearPermission( ulong playerId )
256+
{
257+
lock (_lock)
258+
{
259+
_temporaryPlayerPermissions.Remove(playerId);
260+
}
261+
262+
_queryCache = _queryCache.Clear();
263+
}
264+
}

0 commit comments

Comments
 (0)