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
All checks were successful
EpicKnarvik97/Stargate/pipeline/head This commit looks good
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user