From c7b8855442a315e34ba71f46e954020f897d0199 Mon Sep 17 00:00:00 2001 From: David Hermann Date: Sat, 28 Jan 2023 13:29:02 +0100 Subject: [PATCH] refactoring: Language change, added color When a command is unkown, the language is now german and the message is red. --- src/main/java/org/bitbiome/classes/InteractionLoop.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/bitbiome/classes/InteractionLoop.java b/src/main/java/org/bitbiome/classes/InteractionLoop.java index 2523644..d5c4c98 100644 --- a/src/main/java/org/bitbiome/classes/InteractionLoop.java +++ b/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); } } }