ZCommand
Code (Java):
addCommand
(
"test",
new ZCommand
(
)
.
setCommand
(command
-> command.
sendMessage
(
"Hello world !"
)
)
.
setPermission
(
"admin.command"
)
.
setDescription
(
"Example command !"
)
.
setSyntaxe
(
"/test"
)
.
addSubCommand
(
"test",
"test2",
"test3"
)
.
setOneClass
(
true
)
)
;