Added loot inventory name

This commit is contained in:
Grafe 2012-12-27 16:51:23 +01:00
parent 5adac9a10d
commit e8fa5b2ee7

View File

@ -10,27 +10,27 @@ import org.bukkit.inventory.ItemStack;
public class DLootInventory { public class DLootInventory {
public static CopyOnWriteArrayList<DLootInventory> LootInventorys=new CopyOnWriteArrayList<DLootInventory>(); public static CopyOnWriteArrayList<DLootInventory> LootInventorys=new CopyOnWriteArrayList<DLootInventory>();
public Inventory inventory; public Inventory inventory;
public InventoryView inventoryView; public InventoryView inventoryView;
public Player player; public Player player;
public long time; public long time;
public DLootInventory(Player player, ItemStack[] istacks){ public DLootInventory(Player player, ItemStack[] istacks){
LootInventorys.add(this); LootInventorys.add(this);
this.inventory = Bukkit.createInventory(player, 54); this.inventory = Bukkit.createInventory(player, 54, "Belohnungen");
for(ItemStack istack:istacks){ for(ItemStack istack:istacks){
if(istack!=null){ if(istack!=null){
this.inventory.addItem(istack); this.inventory.addItem(istack);
} }
} }
this.player=player; this.player=player;
} }
public static DLootInventory get(Player player) { public static DLootInventory get(Player player) {
for(DLootInventory inventory:LootInventorys){ for(DLootInventory inventory:LootInventorys){