Interface ServerPluginDisabledInfoProvider

    • Method Detail

      • getDisableReason

        @Nullable
        String getDisableReason​(@NotNull
                                PluginInfo pluginInfo)
        An implementation can filter plugins by certain PluginInfo instance or some other parameters - server implementation enables/disables plugins by their names
        Specified by:
        getDisableReason in interface PluginDisabledInfoProvider
        Parameters:
        pluginInfo -
        Returns:
        a reason why the plugin is disabled and should not be automatically loaded or null otherwise
      • setEnabled

        void setEnabled​(@NotNull
                        PluginInfo pluginInfo,
                        boolean enabled)
        Makes a certain plugin enabled or disabled. This action can have effect on other plugins if implementation filters plugins eg by name
        Parameters:
        pluginInfo -
        enabled -
      • isDisabledManually

        boolean isDisabledManually​(@NotNull
                                   String pluginName)