Browse Source

Added use to help command

remotes/origin/fight-engine
fdai7430 2 years ago
parent
commit
868eb67c39
  1. 2
      src/main/java/org/bitbiome/commands/HelpCommand.java
  2. 2
      src/test/java/org/bitbiome/commands/HelpCommandTest.java

2
src/main/java/org/bitbiome/commands/HelpCommand.java

@ -28,6 +28,8 @@ public class HelpCommand implements CommandAPI {
.append("|" + Colors.ANSI_GREEN + " travel" + Colors.ANSI_RESET + " | Startet das Reise System |\n") .append("|" + Colors.ANSI_GREEN + " travel" + Colors.ANSI_RESET + " | Startet das Reise System |\n")
.append("|--------------|-----------------------------|\n") .append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n") .append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n")
.append("|______________|_____________________________|\n")
.append("|" + Colors.ANSI_GREEN + " use" + Colors.ANSI_RESET + " | Benutze ein Item |\n")
.append("|______________|_____________________________|\n"); .append("|______________|_____________________________|\n");
return outputMessage.toString(); return outputMessage.toString();

2
src/test/java/org/bitbiome/commands/HelpCommandTest.java

@ -22,6 +22,8 @@ public class HelpCommandTest {
.append("|" + Colors.ANSI_GREEN + " travel" + Colors.ANSI_RESET + " | Startet das Reise System |\n") .append("|" + Colors.ANSI_GREEN + " travel" + Colors.ANSI_RESET + " | Startet das Reise System |\n")
.append("|--------------|-----------------------------|\n") .append("|--------------|-----------------------------|\n")
.append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n") .append("|" + Colors.ANSI_GREEN + " location" + Colors.ANSI_RESET + " | Gibt deine Location aus |\n")
.append("|______________|_____________________________|\n")
.append("|" + Colors.ANSI_GREEN + " use" + Colors.ANSI_RESET + " | Benutze ein Item |\n")
.append("|______________|_____________________________|\n"); .append("|______________|_____________________________|\n");
assertEquals(outputMessage.toString(), helpMessage); assertEquals(outputMessage.toString(), helpMessage);
} }

Loading…
Cancel
Save