checkPermission

abstract fun checkPermission(source: CommandSourceStack, permissionNode: String, fallbackLevel: Int): Boolean

Checks for permission of provided command source.

Return

true if the command source has the permission node, false otherwise.

Parameters

source

the command source to check permission for.

permissionNode

the permission node to check.

fallbackLevel

the fallback level to use if the permission node is not set.