|
@ -4,6 +4,7 @@ import org.bitbiome.Boot; |
|
|
import org.json.JSONObject; |
|
|
import org.json.JSONObject; |
|
|
import java.util.Scanner; |
|
|
import java.util.Scanner; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class InteractionLoop { |
|
|
public class InteractionLoop { |
|
|
|
|
|
|
|
|
Scanner input = new Scanner(System.in); |
|
|
Scanner input = new Scanner(System.in); |
|
@ -23,7 +24,7 @@ public class InteractionLoop { |
|
|
while (isRunning) { |
|
|
while (isRunning) { |
|
|
String line = input.nextLine().toLowerCase(); |
|
|
String line = input.nextLine().toLowerCase(); |
|
|
if (!Boot.instance.getCmdListener().perform(line.toLowerCase().split(" ")[0], input, isRunning, line, travelEngine)) { |
|
|
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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|