PluginCustomCommandSender

interface PluginCustomCommandSender : CommandSender, SystemCommandSender

一个来自插件自行实现的 CommandSender.

PluginCustomCommandSender 不一定拥有全部的权限. PluginCustomCommandSender 可以以其他身份执行命令. 默认情况下 PluginCustomCommandSenderConsoleCommandSender 的身份执行命令

See also

Functions

Link copied to clipboard
abstract suspend override fun sendMessage(message: String): Nothing?
open suspend override fun sendMessage(message: Message): Nothing?

立刻发送一条消息.

Properties

Link copied to clipboard
abstract val bot: Bot?

与这个 CommandSender 相关的 Bot. 当通过控制台执行时为 null.

Link copied to clipboard
abstract val coroutineContext: CoroutineContext
Link copied to clipboard
open override val isAnsiSupported: Boolean

当前 SystemCommandSender 是否支持 Ansi 信息

Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val owner: Plugin
Link copied to clipboard
open override val permitteeId: PermitteeId
Link copied to clipboard
abstract val subject: Contact?

与这个 CommandSender 相关的 Contact.

Link copied to clipboard
abstract val user: User?

指令原始发送.

Inheritors

Link copied to clipboard