onRegister
method to the CommandBase
where you can use the setAliases
to register aliases from file without using annotations.ConsoleCommandSender
as the first parameter.TypeResult
object, this is for much easier handling and understanding, updated it here.Boolean
,boolean
, and World
types.SyntaxError
exception that you can throw inside the command method which will trigger the Wrong Usage message.CompleteFor
method which had the SubCommand name, now it'll only be the raw arguments the player is typing.@Values
annotation.@CompleteFor
and @WrongUsage
and it's usages.@MaxArgs
and @MinArgs
due to being virtually unnecessary.CommandManager
constructor.matt-framework
because it looks better.1.15.1
.@Optional
parameter annotation, which allows you to create optional arguments.null
, to simplify error handling.getArgument(String argumentName)
to CommandBase
which allows you to retrieve the raw argument typed by the player for custom error messages.arg.must.be.number
.@Default
as it was broken by previous update.