checkPermission
open fun checkPermission(commandSource: CommandSourceStack, permission: String, fallbackLevel: Int): Boolean
Content copied to clipboard
Checks permission of commandSource using Lucko's permission API. If permission isn't set, it will require the commandSource to have permission level set in the config.
Return
true if commandSource has the permission, otherwise false
Parameters
commandSource
commandSource to check permission for.
permission
permission node to check.
fallbackLevel
level to require if permission isn't set