Browse Source

edited InventoryCommand: added amount to readInv()

remotes/origin/Julia
Juliakn66 2 years ago
parent
commit
4155578805
  1. 2
      src/main/java/org/bitbiome/commands/InventoryCommand.java

2
src/main/java/org/bitbiome/commands/InventoryCommand.java

@ -23,7 +23,7 @@ public class InventoryCommand implements CommandAPI {
ArrayList<Item> inventory = travelEngine.getPlayer().getInventory(); ArrayList<Item> inventory = travelEngine.getPlayer().getInventory();
s.append("Inventory: \n"); s.append("Inventory: \n");
for (int i=0; i < inventory.size(); i++){ for (int i=0; i < inventory.size(); i++){
s.append("- ").append(inventory.get(i).getName()).append("\n");
s.append("- ").append(inventory.get(i).getName()).append(" x").append(inventory.get(i).getAmount()).append("\n");
} }
return s.toString(); return s.toString();

Loading…
Cancel
Save