Detect Item and displayName in x slot

Discussion in 'Plugin Development' started by GRayzerG, Jun 25, 2015.

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

    GRayzerG

    Hi, I need help.
    I need function for detect item and displayName in slot 100 for example.
    The item with displayName in slot 100 is true excute message for example PLS i need your help :)
    i'm begginer i'm learning
     
  2. Offline

    Xerox262

    Code:
    player.getInventory().getItem(100).getItemMeta().getDisplayName();
    
    Will get the display name of the item in slot 100
     
  3. Offline

    MCMatters

    Xerox262 and NathanWolf like this.
  4. Offline

    GRayzerG

    Thanks to both of you
     
Thread Status:
Not open for further replies.

Share This Page