cast org.bukkit.inventory.PlayerInventory to net.minecraft.server.InventoryPlayer I need to open a chest for a EntityPlayer, which u use the method EntityPlayer.a(IInventory) The idea is to open another player's inventory as a large chest Try to map slots 100, 101, 102, 103(armor) to 36, 37, 38, 39 in large chest. Also blocking put-in/exchange with other not-used slots as well as blocking non-armor items to be put into the four slots above. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@lishid There is already a plug-in for that, but unfortunately I forgot its name I will try to find it.. //EDIT Its called iSee, but seems like its INACTIVE.. maybe take a look at the source to find how he approached it? [Click me]