1.8 protocol compatibility

This PR is associated with https://github.com/lenis0012/NPCFactory/pull/15 which provides the API update. Here is the implementation update.