mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Added loot inventory name
This commit is contained in:
parent
5adac9a10d
commit
e8fa5b2ee7
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user