Extension

interface Extension

表示一个扩展.

获取扩展

Console 不允许插件获取自己或其他插件注册的扩展

注册扩展

插件仅能在 JvmPlugin.onLoad 阶段注册扩展

object MyPlugin : KotlinPlugin( /* ... */) {
fun PluginComponentStorage.onLoad() {
contributePermissionService { /* ... */}
contributePluginLoader { /* ... */}
contribute(ExtensionPoint) { /* ... */}
}
}

See also

Inheritors

Properties

Link copied to clipboard

优先级. 越高越先使用. 内嵌的 SpaceSeparatedCommandCallParser 拥有优先级 0.