SpoutDev/Glowstone — comment on commit a6df6416a19335885ae60bcdbd7120bb8e4b2f89
File:  line 0
By Raphfrk:

Yeah, was short on time. I could code it almost as fast as writing.

But basically

server.getRootCommand()
.s(SomePlugin.BASE)
.n("base").a("alias1").a("alias2")
.h("This command does XYZ")
.e(executor).
.s(SomePlugin.SUB1)
.h("This is a sub command of base that does ABC")
.e(executor)

.i(Enum) -> sets an Enum for the command
.n(String) -> sets the main name (same as .s, but creates a new Command object)
.a(String) -> sets aliases
.h(String) -> sets the help string
.e(Executor) -> sets Executor
.s(String) -> sets a sub command.