Because minecraft gets me nowhere I decided to open source this plugin that I own the rights to.
I dont even know if this works nor do I remember anything except for the fact that it somewhat worked and ran on standard 1,8 spigot. Use this code as you want and claim it as your own. I really could care less.