inventory?

Discussion in 'Bukkit Discussion' started by blackshade, Jan 9, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    blackshade

    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
     
  2. Offline

    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
     
  3. Offline

    blackshade

    Fixed
    I needed to download the new bukkit snapshot.
     
Thread Status:
Not open for further replies.

Share This Page