PlayerJoinEvent Slot Placements

Discussion in 'Plugin Development' started by trikxgaming, Apr 19, 2014.

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

    trikxgaming

    In my PlayerJoinEvent how do I make it where I put an Item In the 9 Slot but have nothing in 1-8.
     
  2. Offline

    MOMOTHEREAL

    player.getInventory().setItem(8, <itemstack here>);
     
  3. Offline

    Badeye

    trikxgaming
    After that do player.updateInventory()
    Ignore when it sais it is depreciated, it just updates the inventory and registers the changes so the palyer sees them.
     
Thread Status:
Not open for further replies.

Share This Page