Player Inventory

Discussion in 'Plugin Development' started by berto97, Aug 8, 2018.

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

    berto97

    Hi, I have a problem with the programming of a Bukkit plugin, in the code I use the
    Code:
    Inventory inventory=Bukkit.createInventory(target, 45, "User")
    function to create new inventory,then I insert items with a foreach () and then when a player types the command, I use player.openInventory(Inventory) (player is a org.bukkit.entity.Player) to open the victim's inventory, but when it is necessary to drag or remove or add an item in the inventory, the latter does not undergo variations.
    Can someone help me?
    Does anyone have an idea? (I was thinking of using the PlayerEvent or PlayerInventoryEvent but I can not distinguish between my inventory and his)
     
    Last edited: Aug 14, 2018
Thread Status:
Not open for further replies.

Share This Page