Browse Source

refactoring: outsourced current location message

remotes/origin/locations
David Hermann 2 years ago
parent
commit
c18cb6190a
  1. 7
      src/main/java/org/bitbiome/commands/LocationCommand.java

7
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();
}
}
Loading…
Cancel
Save