Closed MangelMaxime closed 10 years ago
This is really mysterious...However, I just noticed this event has been deprecated:
/**
* Represents a player related inventory event; note that this event never
* actually did anything
*
* @deprecated Use {@link InventoryClickEvent} or {@link InventoryOpenEvent}
* instead, or one of the other inventory events in {@link
* org.bukkit.event.inventory}.
*/
I did try those events and they work fine. So I might remove player_inventory from Purugin since it is going away anyways and just punt on this.
Ok. But the problem is that InventoryOpenEvent is not fired when a player open his on inventory by pressing the 'E' key by default.
How ever this fact is not your concern. Thanks for the answer.
Ah yeah hopefully Bukkit ends up fixing that otherwise this deprecation is not so nice...
Yes that sure. But as far as I remember this event have never been fired by the player inventory.
Hi,
I would like to use the following event :player_inventory but when I tried to load my plugin using this event with the following code :
I get a java NullPointException on the line 7 which is the following :
Here is the full trace :
For information, I have tried severals other PlayerEvent and they work without problems. So I don't really understand why this is happening for this one.