Allows both any and all for selecting all worlds for permission targets

This commit is contained in:
Kristian Knarvik 2022-01-23 11:58:53 +01:00
parent 495beb970c
commit 502f507d0c

View File

@ -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) {