Fixed NPE when gamerule keepInventory set to true.
Added new events API
Fixed item search logic: now plugin will search for the item with the highest priority among permission & physical & virtual and consumes in order of permission > physical > virtual.