emerald-extension / cn.berberman.emerald.dsl.command / DSLCommandScope

DSLCommandScope

class DSLCommandScope

A DSL structure to build command builder.

Author berberman

Properties

after var after: (CommandSender, String) -> Unit
Action after execute, default is empty.Read only.
before var before: (CommandSender, String) -> Unit
Action before execute, default is empty.Read only.

Functions

after fun after(block: (CommandSender, String) -> Unit): Unit
Set property after
before fun before(block: (CommandSender, String) -> Unit): Unit
Set property before
command fun command(name: String, block: DSLCommandBuilder.() -> Unit): Unit
Build a command

Extension Functions

命令 fun DSLCommandScope.命令(名字: String, block: DSLCommandBuilder.() -> Unit): Unit