That error happens when you're registering events before the plugin gets enabled, you're probably registering events in the onLoad() method. You should consider registering events during onEnable() instead. I know your code doesn't show any events being registered, but that's the only case where that error is thrown.