Fixed PlayerInventoryEvent Type.
This commit is contained in:
parent
e6a51fb149
commit
aa7c55627d
@ -264,6 +264,12 @@ public abstract class Event implements Serializable {
|
|||||||
*/
|
*/
|
||||||
PLAYER_BUCKET_FILL(Category.PLAYER),
|
PLAYER_BUCKET_FILL(Category.PLAYER),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when a player interacts with the inventory
|
||||||
|
*
|
||||||
|
* @see org.bukkit.event.player.PlayerInventoryEvent
|
||||||
|
*/
|
||||||
|
PLAYER_INVENTORY(Category.PLAYER),
|
||||||
/**
|
/**
|
||||||
* BLOCK EVENTS
|
* BLOCK EVENTS
|
||||||
*/
|
*/
|
||||||
|
@ -11,7 +11,7 @@ public class PlayerInventoryEvent extends PlayerEvent {
|
|||||||
protected Inventory inventory;
|
protected Inventory inventory;
|
||||||
|
|
||||||
public PlayerInventoryEvent(final Player player, final Inventory inventory) {
|
public PlayerInventoryEvent(final Player player, final Inventory inventory) {
|
||||||
super(Type.PLAYER_INTERACT, player);
|
super(Type.PLAYER_INVENTORY, player);
|
||||||
this.inventory = inventory;
|
this.inventory = inventory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user