Skip to content
Marcin Grzywacz edited this page Nov 5, 2022 · 3 revisions

@Syntax("Your syntax")

@HelpCMD
class TestCMD {
    @Syntax("[a]")
    fun run_s(ex: CommandSender, value: Int) {
    }
    @Syntax("[value]")
    fun run_a(ex: CommandSender, value: Int) {
    }
}

Produces output:

syntaxAnnotation
This syntax basically replaces what there is after sub-command
Without it you would get normal syntax as you would get with every other command
Syntax is also supporting I18n tags you can use it like: Syntax("<path-to-your-i18n-msg>")

Clone this wiki locally