FIX THE USAGE IKN HELP (MAJOR)
This commit is contained in:
parent
1511280da1
commit
cc66b5b43e
2 changed files with 9 additions and 3 deletions
|
@ -134,9 +134,15 @@ public class HelpCommand extends Command {
|
||||||
.append(Component.text(" "));
|
.append(Component.text(" "));
|
||||||
|
|
||||||
if (command.trustLevel == TrustLevel.TRUSTED) {
|
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) {
|
} 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)));
|
usageComponent = usageComponent.append(Component.text(usage).color(ColorUtilities.getColorByString(bot.config.colorPalette.string)));
|
||||||
|
|
|
@ -13,7 +13,7 @@ public class ValidateCommand extends Command {
|
||||||
super(
|
super(
|
||||||
"validate",
|
"validate",
|
||||||
"Validates a hash",
|
"Validates a hash",
|
||||||
new String[] { "<hash|ownerHash>" },
|
new String[] { "" },
|
||||||
new String[] { "checkhash" },
|
new String[] { "checkhash" },
|
||||||
TrustLevel.TRUSTED,
|
TrustLevel.TRUSTED,
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue