1.16.5 How can I manipulate the slot of the player

Discussion in 'Spigot Plugin Development' started by Lolmaster5000, Jul 13, 2021.

  1. How can I manipulate the slot of the player
     
  2. [​IMG]


    You mean set the item in a player's inventory slot?
    You could use:
    Code (Text):
    playerObj.getInventory().setItem(slotNumber, item);
     
    • Funny Funny x 1
  3. If you want to manipulate a players selected hotbar slot you can use Player#getInventory().setHeldItemSlot();
     
    • Like Like x 1
  4. nope, i want to manipulate the players slot, on mcdiamondfire.com is it possible
     
  5. Thanks!