inventory.

Discussion in 'Plugin Development' started by Deckerz, Feb 15, 2013.

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

    Deckerz

    Hey,
    i was wondering how would you limit a player to say 18 out of the 36 slots in a inventory?
    because I have no idea where to start.
     
  2. Offline

    danthonywalker

    Listen for an InventoryEvent

    Use a for loop that loops through all the slots in the inventory. Mind starting from 0 and looping up from there. Then check to see if there's an item in a slot number and set that to null, or whatever you want to do.

    SlotID:

    [​IMG]
     
Thread Status:
Not open for further replies.

Share This Page