Fix buy function
Fix NPE when disabling after ProtocolLib