onRegistermethod to the
CommandBasewhere you can use the
setAliasesto register aliases from file without using annotations.
ConsoleCommandSenderas the first parameter.
TypeResultobject, this is for much easier handling and understanding, updated it here.
SyntaxErrorexception that you can throw inside the command method which will trigger the Wrong Usage message.
CompleteFormethod which had the SubCommand name, now it'll only be the raw arguments the player is typing.
@WrongUsageand it's usages.
@MinArgsdue to being virtually unnecessary.
matt-frameworkbecause it looks better.
@Optionalparameter annotation, which allows you to create optional arguments.
null, to simplify error handling.
CommandBasewhich allows you to retrieve the raw argument typed by the player for custom error messages.
@Defaultas it was broken by previous update.