Support spigot 1.8, use click and close event instead of packet
injection. Check if entity has inventory for properlycloseinventories
check.