public boolean shouldPost(Class<? extends LuckPermsEvent> eventClass) {
        return this.bus.hasSubscribers(eventClass);
    }
Checks that the given plugin object is a valid plugin instance for the platform

@param plugin the object
@return a plugin
@throws IllegalArgumentException if the plugin is invalid
common/src/main/java/me/lucko/luckperms/common/event/AbstractEventBus.java