Make help command use descriptions and usages

This commit is contained in:
2022-12-20 17:51:28 +01:00
parent e08fefbda3
commit 496304c2c3
15 changed files with 258 additions and 13 deletions

View File

@@ -30,6 +30,23 @@ public class DiceRollCommand implements MessageCommand
return false;
}
@NotNull
@Override
public String getDescription() {
return "Roll dice. You can roll multiple dice at the same time." +
"\nExamples:" +
"\n - `d8 10` to roll an 8-sided die 10 times." +
"\n - `d12 3 d5 10` to roll a 12-sided die 3 times, and then a 5-sided die 10 times." +
"\n - `30` to roll a standard 6-sided die 30 times." +
"\n - `d10` to roll a 10-sided die once.";
}
@Nullable
@Override
public String getUsage() {
return "[dice size] [rolls]";
}
@NotNull
@Override
public CommandCategory getCategory() {