|
@ -8,6 +8,11 @@ public class LocationCommand implements CommandAPI{ |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void performCommand(Scanner scanner, boolean isRunning, String message, TravelEngine travelEngine) { |
|
|
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(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |