Fixes a bug when checking whether a player has the required permission to access a world
All checks were successful
EpicKnarvik97/Stargate/pipeline/head This commit looks good

This commit is contained in:
2026-01-23 02:21:18 +01:00
parent 89a68b40b1
commit 2bf9f13379

View File

@@ -219,7 +219,7 @@ public final class PermissionHelper {
* @return <p>False if the player should be allowed to access the world</p> * @return <p>False if the player should be allowed to access the world</p>
*/ */
public static boolean cannotAccessWorld(@NotNull Player player, @NotNull String world) { public static boolean cannotAccessWorld(@NotNull Player player, @NotNull String world) {
return hasPermission(player, Permission.ACCESS_WORLD, world); return !hasPermission(player, Permission.ACCESS_WORLD, world);
} }
/** /**