PluginAddEvent

class PluginAddEvent(val repositoryPlugin: RepositoryPlugin, val versionSpecifier: VersionSpecifier, val repositoryType: String, val repositoryId: String) : ResultedEvent<ResultedEvent.GenericResult>

プラグインを管理対象(mpm.json)に追加する前に発火するイベント

結果を拒否(denied)にすると、追加処理を中止させることができる。

Constructors

Link copied to clipboard
constructor(repositoryPlugin: RepositoryPlugin, versionSpecifier: VersionSpecifier, repositoryType: String, repositoryId: String)

Properties

Link copied to clipboard

リポジトリID

Link copied to clipboard

追加対象のリポジトリプラグイン

Link copied to clipboard

リポジトリの種類(github, modrinth, spigotmc など)

Link copied to clipboard
open override var result: ResultedEvent.GenericResult
Link copied to clipboard

追加時のバージョン指定

Functions

Link copied to clipboard
open override fun getResult(): ResultedEvent.GenericResult

現在の結果を返す(初期値は許可)

Link copied to clipboard
open override fun setResult(result: ResultedEvent.GenericResult)

結果を設定する(denied にすると mpm は処理を中止する)