From d4c2fb94964d89ee5d0f85eae5387c390c1dcba2 Mon Sep 17 00:00:00 2001 From: Tanja Herche Date: Fri, 3 Feb 2023 20:48:49 +0100 Subject: [PATCH] Integrated Locations --- src/main/java/org/bitbiome/commands/MapCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bitbiome/commands/MapCommand.java b/src/main/java/org/bitbiome/commands/MapCommand.java index 44cdd6a..2c5906a 100644 --- a/src/main/java/org/bitbiome/commands/MapCommand.java +++ b/src/main/java/org/bitbiome/commands/MapCommand.java @@ -13,8 +13,9 @@ public class MapCommand implements CommandAPI{ JSONArray locations = travelEngine.getLocationList(); outputMessage .append("Map:\n") - .append("Wueste Gruenland Winterland\n\n") - .append("Strand Wald Berge\n\n"); + .append(locations.getJSONObject(5).getString("name") + " " + locations.getJSONObject(4).getString("name") + " " + locations.getJSONObject(2).getString("name") + "\n\n") + .append(locations.getJSONObject(1).getString("name") + " " + locations.getJSONObject(0).getString("name") + " " + locations.getJSONObject(3).getString("name") + "\n\n"); + return outputMessage.toString(); }