Skip to content

Commit

Permalink
fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 1, 2025
1 parent e14f271 commit 72e96bc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ private void onPlayerKick(PlayerKickEvent event) {
flushCache(event.getPlayer());
}

private void flushCache(Permissible commandSender) {
if (permissionCacheMap.containsKey(commandSender)) {
permissionCacheMap.get(commandSender).invalidateAll();
permissionCacheMap.get(commandSender).cleanUp();
permissionCacheMap.remove(commandSender);
private void flushCache(Permissible permissible) {
if (permissionCacheMap.containsKey(permissible)) {
permissionCacheMap.get(permissible).invalidateAll();
permissionCacheMap.get(permissible).cleanUp();
permissionCacheMap.remove(permissible);
}
}
}

0 comments on commit 72e96bc

Please sign in to comment.