FIX THE USAGE IKN HELP (MAJOR)

This commit is contained in:
Chayapak 2023-09-27 11:04:30 +07:00
parent 1511280da1
commit cc66b5b43e
2 changed files with 9 additions and 3 deletions

View file

@ -134,9 +134,15 @@ public class HelpCommand extends Command {
.append(Component.text(" "));
if (command.trustLevel == TrustLevel.TRUSTED) {
usageComponent = usageComponent.append(Component.text("<hash>"));
usageComponent = usageComponent
.append(Component.text("<hash>"))
.append(Component.space())
.color(ColorUtilities.getColorByString(bot.config.colorPalette.string));
} else if (command.trustLevel == TrustLevel.OWNER) {
usageComponent = usageComponent.append(Component.text("<ownerHash>"));
usageComponent = usageComponent
.append(Component.text("<ownerHash>"))
.append(Component.space())
.color(ColorUtilities.getColorByString(bot.config.colorPalette.string));
}
usageComponent = usageComponent.append(Component.text(usage).color(ColorUtilities.getColorByString(bot.config.colorPalette.string)));

View file

@ -13,7 +13,7 @@ public class ValidateCommand extends Command {
super(
"validate",
"Validates a hash",
new String[] { "<hash|ownerHash>" },
new String[] { "" },
new String[] { "checkhash" },
TrustLevel.TRUSTED,
false