From 6f87471e8a56c3c27d6cb58ec5af243bb7af18f9 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 22 Feb 2015 18:14:49 +1100 Subject: [PATCH] inventory --- .../com/intellectualcrafters/plot/commands/Inventory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inventory.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inventory.java index e816e5e14..785217c9c 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inventory.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inventory.java @@ -28,6 +28,7 @@ import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; +import com.intellectualcrafters.plot.object.BukkitPlayer; import com.intellectualcrafters.plot.object.PlotPlayer; public class Inventory extends SubCommand { @@ -48,7 +49,8 @@ public class Inventory extends SubCommand { for (final SubCommand cmd : cmds) { inventory.addItem(getItem(cmd)); } - plr.openInventory(inventory); + // FIXME unchecked cast + ((BukkitPlayer) plr).player.openInventory(inventory); return true; }