@Override
    public <T extends LuckPermsEvent> @NonNull Set<EventSubscription<T>> getSubscriptions(@NonNull Class<T> eventClass) {
        return this.bus.getHandlers(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