Command Context
class CommandContext<T>(flyLib: FlyLib<T>, config: T?, command: Command<T>, sender: CommandSender, world: World?, server: Server, message: String, depth: Int, typedArgs: List<Any?>)
Content copied to clipboard
The context when the command is executed. It is passed as an argument or receiver when executing a command or completing a tab. This class holds information when executing a command or completing a tab, which can be retrieved by the plug-in that registered the command, the command itself, the sender of the command, etc. It can also send a message to the executor of the command, display usage instructions, etc.
Constructors
Functions
message
Link copied to clipboard
send component via builder
send component
plugin Message
Link copied to clipboard
send component via builder with plugin name
send string with plugin name
send component with plugin name
send colored string with plugin name
plugin Message Fail
Link copied to clipboard
send red string with plugin name
plugin Message Success
Link copied to clipboard
send green string with plugin name
plugin Message Warn
Link copied to clipboard
send yellow string with plugin name
update Config
Link copied to clipboard