|
|
@ -1,5 +1,6 @@ |
|
|
|
package org.bitbiome.commands; |
|
|
|
|
|
|
|
import org.bitbiome.classes.Colors; |
|
|
|
import org.bitbiome.classes.JsonParser; |
|
|
|
import org.bitbiome.classes.TravelEngine; |
|
|
|
import org.bitbiome.entities.Item; |
|
|
@ -21,9 +22,9 @@ public class InventoryCommand implements CommandAPI { |
|
|
|
JSONObject o = jp.getJSONObject("playerconfig.json"); |
|
|
|
|
|
|
|
ArrayList<Item> inventory = travelEngine.getPlayer().getInventory(); |
|
|
|
s.append("Inventory: \n"); |
|
|
|
s.append(Colors.ANSI_BRIGHT_RED +"Inventory:\n"+ Colors.ANSI_RESET); |
|
|
|
for (int i=0; i < inventory.size(); i++){ |
|
|
|
s.append("- ").append(inventory.get(i).getName()).append(" x").append(inventory.get(i).getAmount()).append("\n"); |
|
|
|
s.append(Colors.ANSI_BRIGHT_BG_RED+ Colors.ANSI_BRIGHT_WHITE+ "- ").append(inventory.get(i).getName()).append(" x").append(inventory.get(i).getAmount()).append(" "+ Colors.ANSI_RESET + "\n" ); |
|
|
|
} |
|
|
|
|
|
|
|
return s.toString(); |
|
|
|