Skip to content

Commit

Permalink
Fixed Issues with Island Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Jan 14, 2024
1 parent 2002a71 commit 6a16f84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public synchronized boolean getTeamPermission(Island island, int rank, String pe

@Override
public synchronized void setTeamPermission(Island island, int rank, String permission, boolean allowed) {
TeamPermission islandPermission = new TeamPermission(island, permission, rank, true);
TeamPermission islandPermission = new TeamPermission(island, permission, rank, allowed);
Optional<TeamPermission> teamPermission = IridiumSkyblock.getInstance().getDatabaseManager().getPermissionsTableManager().getEntry(islandPermission);
if (teamPermission.isPresent()) {
teamPermission.get().setAllowed(allowed);
Expand Down

0 comments on commit 6a16f84

Please sign in to comment.