Solved Yo, I got a question about inventories.

Discussion in 'Plugin Development' started by 87pen, Mar 13, 2016.

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

    87pen

    If I open another players inventory on their screen does it auto update when someone moves it around or is it a copy? Example:
    commandSender.openInventory(target.getInventory());
    When the sender moves items in this inventory will it auto update the targets inventory?
     
  2. Offline

    Zombie_Striker

    @87pen
    Yes. When you open an inventory, you do not clone it. If you modify that instance in any way, the player's inventory will update as well.
     
  3. Offline

    87pen

Thread Status:
Not open for further replies.

Share This Page