So I need to execute some PHP code whenever a user purchases a upgrade on my forum. I used to use this addon, Run Query on User Upgrade. However, this addon is no longer compatible with XenForo, where XF says the class does not exist. This is not a hard add-on to code, but I have no idea on how to go about it (from what I saw, there's very little documentation on coding a plugin). Thanks!