Browse Source

refactoring: Language change, added color

When a command is unkown, the language is now german and the message is red.
remotes/origin/fight-engine
David Hermann 2 years ago
parent
commit
c7b8855442
  1. 4
      src/main/java/org/bitbiome/classes/InteractionLoop.java

4
src/main/java/org/bitbiome/classes/InteractionLoop.java

@ -3,6 +3,8 @@ package org.bitbiome.classes;
import org.bitbiome.Boot;
import org.json.JSONObject;
import java.util.Scanner;
import org.bitbiome.classes.Colors;
public class InteractionLoop {
@ -23,7 +25,7 @@ public class InteractionLoop {
while (isRunning) {
String line = input.nextLine().toLowerCase();
if (!Boot.instance.getCmdListener().perform(line.toLowerCase().split(" ")[0], input, isRunning, line, travelEngine)) {
System.out.println("Unknown Command");
System.out.println(Colors.ANSI_RED + "Unbekannter Befehl - Siehe " + Colors.ANSI_PURPLE + "help\n" + Colors.ANSI_RESET);
}
}
}

Loading…
Cancel
Save