CommandBuilder
Functions
Adds a new argument to this command. The ArgumentType will be resolved using the reified type T. For a list of supported types, have a look at ArgumentTypeUtils.fromReifiedType, as it is the function used by this builder function.
Adds a new argument to this command. This variant of the argument function allows you to specify the ArgumentType in the classical Brigadier way.
Adds a new argument to this command. This variant of the argument function you to specifiy the argument parse logic using a Kotlin lambda function (parser).
Adds a new argument to this command. This variant of the argument function allows you to pass and argument which depends on the CommandBuildContext.
Specifies that the given permission level is required to execute this part of the command tree. A shortcut delegating to requires.
Specifies that the PermissionLevel given as level is required to execute this part of the command tree. A shortcut delegating to requires.
Adds custom execution logic to this command. DEPRECATED Use runs instead.
Converts this Kotlin command builder abstraction to an ArgumentBuilder of Brigadier.