Class PermissionUtils
java.lang.Object
org.mvplugins.multiverse.core.permissions.PermissionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
concatPermission
(String permission, String... child) Joins permissions with a dot.static boolean
hasPermission
(org.bukkit.command.CommandSender sender, String permission) Check and log if the sender has the permission.static boolean
static void
setDebugPermissions
(boolean debugPermissions)
-
Method Details
-
isDebugPermissions
public static boolean isDebugPermissions() -
setDebugPermissions
public static void setDebugPermissions(boolean debugPermissions) -
concatPermission
Joins permissions with a dot.- Parameters:
permission
- The permissionchild
- The string(s) to join- Returns:
- The newly joined permission node.
-
hasPermission
Check and log if the sender has the permission.- Parameters:
sender
- The senderpermission
- The permission- Returns:
- True if the sender has the permission, else false.
-