PluginUpdateEvent

class PluginUpdateEvent(val installedPlugin: InstalledPlugin, val beforeVersion: VersionSpecifier, val targetVersion: VersionSpecifier) : ResultedEvent<ResultedEvent.GenericResult>

プラグインを更新(バージョン切り替えを含む)する前に発火するイベント

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

Constructors

Link copied to clipboard
constructor(installedPlugin: InstalledPlugin, beforeVersion: VersionSpecifier, targetVersion: VersionSpecifier)

Properties

Link copied to clipboard

更新前のバージョン指定

Link copied to clipboard

更新するプラグイン

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 は処理を中止する)