CommandHandler

interface CommandHandler : CommandExecutor, TabExecutor

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
execute
Link copied to clipboard
The method to execute a command.
abstract fun execute(sender: CommandSender, args: List<String>, props: CommandProperties)
hashCode
Link copied to clipboard
open override fun hashCode(): Int
onCommand
Link copied to clipboard
override the default onCommand. it will call the new execute method
open override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<Out String>): Boolean
onTabComplete
Link copied to clipboard
Tab complete isn't required, so it defaults to nothing, but it is available.
open override fun onTabComplete(sender: CommandSender, command: Command, alias: String, args: Array<Out String>): MutableList<String>
register
Link copied to clipboard
A method to register a CommandHandler
open fun register(plugin: KotlinPlugin)
toString
Link copied to clipboard
open override fun toString(): String

Properties

commandName
Link copied to clipboard
abstract val commandName: String
description
Link copied to clipboard
abstract val description: String
plugin
Link copied to clipboard
abstract val plugin: KotlinPlugin
usage
Link copied to clipboard
abstract val usage: String