[SPIGOT-882] PlayerDropItemEvent being fired incorrectly and causing duplication Created: 12/May/15 Updated: 21/May/15 Resolved: 21/May/15 |
|
| Status: | Closed |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | José Roberto de Araújo Júnior | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | 1.8.3, Craftbukkit, PlayerDropItemEvent, bug, craftbukkit, dupe, duplication, event | ||
| Description |
|
PlayerDropItemEvent is being fired when a player receives items from /give command and causes duplication of 1 item for each command execution when the event is cancelled. Note: Affects both Spigot and CraftBukkit For example, if I have this plugin:
And execute the commands below the event PlayerDropItemEvent will be fired even thought the player didn't drop any item and cancelling it will cause the player to receive one extra item. /give player minecraft:wooden_axe 1 /give player minecraft:crafting_table 64 /give player minecraft:iron_ore Tested versions: |
| Comments |
| Comment by md_5 [ 21/May/15 ] |
|
Cannot reproduce, no event fired for give command |
| Comment by José Roberto de Araújo Júnior [ 12/May/15 ] |
|
The correct test plugin code: |