execute

abstract fun execute(ctx: CommandContext, enable: Boolean): CommandResult(source)

Enables or disables the setting for a player.

Return

Command result indicating success or failure

Parameters

ctx

The command context containing player information

enable

True to enable, false to disable