hey @red51
I tried to use the PlayerInventoryToChestEvent and I always get null when using the .getItem() method.
This is how I tested it:
Java
This code snippet always prints "item is null"
Edit: also just noticed there is a small mistake in the description of the getExchangeItem() method in the same event. Where it says: "Returns null if there is no exchange item (i.e. when the player moves the item to an empty slot in his inventory)." I think it should say: "Returns null if there is no exchange item (i.e. when the player moves the item to an empty slot in the chest)."