[Solved] Give item to player in certain slot?

Discussion in 'Skript' started by Lordcre_, May 4, 2017.

Thread Status:
Not open for further replies.
  1. What the title says.

    Is there any way to give a player a specific item in a specific slot?
     
    • Optimistic Optimistic x 1
  2. yes there is a way but u would want to make sure that slot is not usable unless u enter a certain command that will make it useable to the player or u can use /invsee from essentials :p
     
  3. Code:
    player.getInventory().setItem([SLOT], [ITEM]);
     
    • Optimistic Optimistic x 1
  4. Omg read the section this is in. This is Skript not java.
    Have you checked the docs?
     
  5. oops, sorry :D I didn't see this
     
  6. Yeah, I searched through both the Skript documentation and skUnity and couldn't find anything.
     
  7. If you're using the Bensku's fork you can use the slot expression from it, if not then you can use skQuery or Skellett, both have the same expression as in the Bensku's fork.
     
    • Winner Winner x 1
Thread Status:
Not open for further replies.