Browse Source

updated CollectCommand.java: generate a user input to collect specific item

remotes/origin/Julia
Juliakn66 2 years ago
parent
commit
2deb02b591
  1. 5
      src/main/java/org/bitbiome/commands/CollectCommand.java

5
src/main/java/org/bitbiome/commands/CollectCommand.java

@ -13,6 +13,11 @@ public class CollectCommand 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("Was willst du einsammeln?");
String item = new String();
item = scanner.nextLine();
} }
public void collectItem(ArrayList<Item> location, String item, JsonParser jp, JSONObject o, JSONArray inventory, TravelEngine travelEngine) { public void collectItem(ArrayList<Item> location, String item, JsonParser jp, JSONObject o, JSONArray inventory, TravelEngine travelEngine) {

Loading…
Cancel
Save