hasPermission

open fun hasPermission(source: McCommandSource, arguments: Array<String>?): Boolean

Checks if the command source has permission to execute this command.

Note: Arguments are not null only during command execution.

By default, this method returns true, indicating that the command can be executed by any source.

Return

true if the command source has permission to execute this command; otherwise, false.

Parameters

source

The command source attempting to execute the command.

arguments

An array of command arguments provided during execution (may be null).