diff --git a/src/main/java/org/bitbiome/commands/LocationCommand.java b/src/main/java/org/bitbiome/commands/LocationCommand.java index 5b690d0..cbbca02 100644 --- a/src/main/java/org/bitbiome/commands/LocationCommand.java +++ b/src/main/java/org/bitbiome/commands/LocationCommand.java @@ -8,6 +8,11 @@ public class LocationCommand implements CommandAPI{ @Override public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { - System.out.println("Du befindest dich gerade hier: " + travelEngine.getPlayer().getLocation().getName()); + System.out.println(getLocationMessage(travelEngine)); + } + + + public static String getLocationMessage(TravelEngine travelEngine) { + return "Du befindest dich gerade hier: " + travelEngine.getPlayer().getLocation().getName(); } }