Player.setCanPickupItems(False) Player still can Pickup Items

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      Hi,

      in one Plugin of mine i have created an Inventory and while this Inventory is open the Player should not be able to PickUp Items i have one Method to open the Inventory ond one which gets called when the Inventory gets closed.

      In the Method which open the Inventory is say

       

      player.setCanPickupItems(false);
      

       

      And in the Method which gets called when the Inventory Close

       

      player.setCanPickupItems(true);
      

       

      But the Player is still able to Pickup Items , i could make it via the Listener and then checking if the Inventory is open , but that would be very inefficent i thought

       

      Excuse my bad Englisch , i hope you understand my Problem

       

       

            Assignee:
            Unassigned
            Reporter:
            Hannes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: