How do I get to the invetory interface. I have an event.type object but I can't seem to get to the player his inventory trough te code i have this: Code: public void onBlockRightClicked(BlockRightClickedEvent event) { Player player = event.getPlayer(); Inventory inv = player.getInventory(); } But that doesn't work... Can anybody help me? thanks, regards, Blackshade
Anybody a suggestion how I can open and adjust (with addItem() and things) a player his inventory from a plugin? I have no clue how to do it and I can't find it on the http://hudson.lukegb.com/job/Bukkit/javadoc/? website