Class PermissionUtils

java.lang.Object
org.mvplugins.multiverse.core.permissions.PermissionUtils

public final class PermissionUtils extends Object
  • Method Details

    • isDebugPermissions

      public static boolean isDebugPermissions()
    • setDebugPermissions

      public static void setDebugPermissions(boolean debugPermissions)
    • registerPermissionWithWildcards

      @AvailableSince("5.4") public static void registerPermissionWithWildcards(org.bukkit.permissions.Permission permission)
      Registers a permission along with all its wildcard parents.
      For example, registering "mv.bypass.joinlocation" will also register "mv.*" and "mv.bypass.*" as parents.
      Parameters:
      permission - The permission to register.
      Since:
      5.4
    • concatPermission

      public static String concatPermission(String permission, String... child)
      Joins permissions with a dot.
      Parameters:
      permission - The permission
      child - The string(s) to join
      Returns:
      The newly joined permission node.
    • hasPermission

      public static boolean hasPermission(org.bukkit.command.CommandSender sender, String permission)
      Check and log if the sender has the permission.
      Parameters:
      sender - The sender
      permission - The permission
      Returns:
      True if the sender has the permission, else false.