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) -> UnitAction after execute, default is empty.Read only. |
| before | var before: (CommandSender, String) -> UnitAction before execute, default is empty.Read only. |
Functions
| after | fun after(block: (CommandSender, String) -> Unit): UnitSet property after |
| before | fun before(block: (CommandSender, String) -> Unit): UnitSet property before |
| command | fun command(name: String, block: DSLCommandBuilder.() -> Unit): UnitBuild a command |
Extension Functions
| 命令 | fun DSLCommandScope.命令(名字: String, block: DSLCommandBuilder.() -> Unit): Unit |