Class ADPPlugin

    • Constructor Detail

      • ADPPlugin

        protected ADPPlugin()
      • ADPPlugin

        protected ADPPlugin​(ADPBootstrap bootstrap)
    • Method Detail

      • loading

        public void loading()
        On plugin load
      • enabling

        public void enabling()
        On plugin enable
      • disabling

        public void disabling()
        On plugin disable
      • onDisabling

        public abstract void onDisabling()
        Used to disable other non-common managers
      • canBeLoaded

        protected boolean canBeLoaded()
        Can the plugin be loaded?
        Returns:
        true if can be loaded
      • getJavaVersion

        public int getJavaVersion()
        Get the current Java version
        Returns:
        the java version
      • getJavaVersion

        public int getJavaVersion​(String fullVersion)
        Get the java version integer based on the full version
        Parameters:
        fullVersion - java full version
        Returns:
        the integer of the version
      • preHandle

        protected final void preHandle()
        Preparation before the main handle method Initialize necessary classes
      • handle

        protected final void handle()
        Load necessaries classes and initialize others
      • postHandle

        protected abstract void postHandle()
        Load any other class
      • initializeCore

        protected abstract void initializeCore()
        Used to initialize: scheduler, database and configuration
      • loadCore

        protected abstract void loadCore()
        Use to load: scheduler, database and configuration
      • reloadConfiguration

        public abstract void reloadConfiguration()
        Reload the configuration
      • initializeJsonHandler

        protected abstract void initializeJsonHandler()
        Initialize Json Handler instance
      • initializeTitleHandler

        protected abstract void initializeTitleHandler()
        Initialize Title Handler instance
      • getLibrariesUsages

        public abstract List<LibraryUsage> getLibrariesUsages()
        Returns a list of usages of libraries to load the plugin
        Returns:
        a list of usages