Improve Help command

This commit is contained in:
Him188 2020-08-26 22:51:34 +08:00
parent 0d8c1f96dc
commit 91b924ad11

View File

@ -91,9 +91,10 @@ public object BuiltInCommands {
), BuiltInCommand {
@Handler
public suspend fun CommandSender.handle() {
sendMessage(allRegisteredCommands.joinToString {
it.usage + "\n\n"
})
sendMessage(
allRegisteredCommands.joinToString("\n\n") { "${it.usage}" }.lines().filterNot(String::isBlank)
.joinToString("\n")
)
}
}