MpmPermissionFactory

class MpmPermissionFactory(platform: CommandPlatform) : CommandPermission.Factory<CommandActor>

MpmPermission を Lamp のパーミッション判定に変換するファクトリー

ここで作った判定は Lamp が brigadier の requires にも使うため、 権限の無いサブコマンドはTab補完にも表示されなくなる。

Parameters

platform

パーミッションを判定するプラットフォーム実装

Constructors

Link copied to clipboard
constructor(platform: CommandPlatform)

Functions

Link copied to clipboard
open override fun create(annotations: AnnotationList, lamp: Lamp<CommandActor>): CommandPermission<CommandActor>?

コマンドのアノテーションからパーミッション判定を作る