From 60d40a26eeb8d1b4d809423e16c70cfe7f06a72e Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 30 Oct 2020 22:36:39 +0100 Subject: [PATCH] Updated Command system (markdown) --- Command-system.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Command-system.md b/Command-system.md index 33f6627..1ce3bc9 100644 --- a/Command-system.md +++ b/Command-system.md @@ -30,6 +30,8 @@ What it does and why Usage: /some ``` +## Subcommand methods + The return type can be void or boolean, if you return false it will display the help text. You can use any simple type (primitives and String) as parameters, and can add more types using `command2.addParamConverter()`. Plugins are also supported via a builtin param converter. Command2 instances can also be obtained using `getManager()` from a command class. You can define optional arguments or text arguments (that can take spaces) and define custom tab completion instead of one based on parameter type. `@CustomTabComplete` lets you define constant strings while `@CustomTabCompleteMethod` lets you use a method to figure out what options are available based on previous arguments.