Subcommand

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class Subcommand(val path: String, val description: String = "", val usage: String = "")

Mark this function as a subcommand.

Properties

Link copied to clipboard

The description of the subcommand. This currently has no effect.

Link copied to clipboard

The name of the subcommand. Each value placed here, players will need to use as an argument to get to this method. eg. "frost start", would require the player to run "/command frost start ".

Link copied to clipboard

The usage of the subcommand. This currently has no effect.