Almost done. See SpigotNMS.java:67