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)
    • 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.