[SPIGOT-3379] Player.setCanPickupItems(False) Player still can Pickup Items Created: 25/Jun/17 Updated: 25/Jun/17 Resolved: 25/Jun/17 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Hannes | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
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
|
| Comments |
| Comment by Hannes [ 25/Jun/17 ] |
|
I, have found the Entry in the JavaDocs that is has no effect to HumanEntity ..... Will there be a Method like that in future relases for HumanEntitys ? |