Fix key help message not being shown

This commit is contained in:
Bella 2020-05-05 11:33:13 -04:00
parent 777b7d6762
commit 6b6d611585
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 2 additions and 3 deletions

View File

@ -18,13 +18,12 @@ class MacroCommand : Command("macro", ChunkBuilder().append("key|list").append("
val key = Wrapper.getKey(rKey)
if (key == 0 && !rKey.equals("list", true)) {
sendErrorMessage("Unknown key '&7$rKey&f'!")
sendErrorMessage("Unknown key '&7$rKey&f'! Left alt is &7lmenu&f and left Control is &7lctrl&f. You cannot bind the &7meta&f key.")
return
}
when {
args[0] == null -> { /* key */
sendWarningMessage("$chatLabel You must include the key you want to bind it to. Left alt is &7lmenu&f and left Control is &7lctrl&f. You cannot bind the &7meta&f key.")
args[0] == null -> { /* key, error message is caught by the command handler but you don't want to continue the rest */
return
}
args[0] == "list" -> {