diff --git a/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java b/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java index ae24ecdc..27fccce8 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/DLootInventory.java @@ -4,7 +4,6 @@ import java.util.concurrent.CopyOnWriteArrayList; import org.bukkit.Bukkit; import org.bukkit.entity.Player; -import org.bukkit.event.inventory.InventoryType; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; @@ -21,7 +20,7 @@ public class DLootInventory { public DLootInventory(Player player, ItemStack[] istacks){ LootInventorys.add(this); - this.inventory = Bukkit.createInventory(player, InventoryType.CHEST); + this.inventory = Bukkit.createInventory(player, 54); for(ItemStack istack:istacks){ if(istack!=null){ this.inventory.addItem(istack); diff --git a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java index 68a7b68e..30177e37 100644 --- a/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java +++ b/DungeonsXL/src/com/dre/dungeonsxl/listener/PlayerListener.java @@ -335,7 +335,6 @@ public class PlayerListener implements Listener{ @EventHandler public void onInventoryClose(InventoryCloseEvent event){ - p.log("CLOSE!!!"); Player player =(Player) event.getPlayer(); for(DLootInventory inventory:DLootInventory.LootInventorys){ if(event.getView()==inventory.inventoryView){