From 502f507d0c5bc3b7c7898d2fd3e3e8cecb950315 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sun, 23 Jan 2022 11:58:53 +0100 Subject: [PATCH] Allows both any and all for selecting all worlds for permission targets --- .../knarcraft/permissionsigns/manager/PermissionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/permissionsigns/manager/PermissionManager.java b/src/main/java/net/knarcraft/permissionsigns/manager/PermissionManager.java index aaac4f3..26a4a45 100644 --- a/src/main/java/net/knarcraft/permissionsigns/manager/PermissionManager.java +++ b/src/main/java/net/knarcraft/permissionsigns/manager/PermissionManager.java @@ -91,7 +91,7 @@ public final class PermissionManager { private static void grantWorldPermission(Player player, String permissionNode, boolean temporary) { String[] permissionParts = permissionNode.split(":"); String world = permissionParts[0]; - if (world.equalsIgnoreCase("all")) { + if (world.equalsIgnoreCase("all") || world.equalsIgnoreCase("any")) { world = null; } if (temporary) {