Skip to content

SubClasses sub subcommands

Marcin Grzywacz edited this page Nov 4, 2022 · 1 revision

From 0.7.18
Following code:

class TestCMD {
    fun b(ex: CommandSender): String {
        return "i am king"
    }

    class SomeOtherCMD {
        fun c(ex: CommandSender): String {
            return "Hello world"
        }
    }
}

Generates the following two commands:

/test b - returns i am king
/test someother c - returns hello world

Because subclass is now considered a subcommand in the supcommand

Clone this wiki locally