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; }