(Need help)InventoryClickEvent?

Discussion in 'Plugin Development' started by A3O2, Oct 2, 2012.

Thread Status:
Not open for further replies.
  1. this is my code:
    PHP:
        @EventHandler
        
    public void InvBoots(InventoryClickEvent e){
            
    Player player = (Playere.getWhoClicked();
            if(
    player.getItemOnCursor().getType() == Material.DIAMOND_BOOTS && e.getSlot() == ??){
                
    //Do stuff
            
    }
        }
    i need it to find the armor slots.
    Early thanks to anyone who helps :)

    p.s. "??" meens i dont know what it has to be.
     
  2. Offline

    Hoolean

    It would help if you said what was wrong :/
     
  3. I really need to know how its wrong
     
  4. Offline

    Hoolean

    You haven't even said what you wan't to achieve or what the code is supposed to do.
     
  5. where it says "do stuff" it meens my code is in there.
     
  6. Offline

    brord

  7. this doesnt seem to work for me.
    PHP:
    @EventHandler
    public void InvBoots(InventoryClickEvent e){
    Player player = (Playere.getWhoClicked();
    if(
    player.getItemOnCursor().getType() == Material.DIAMOND_BOOTS && e.getSlotType().equals(Material.DIAMOND_BOOTS)){
    //MY CODE HERE
    }
     
Thread Status:
Not open for further replies.

Share This Page