Class AScheduler

    • Constructor Detail

      • AScheduler

        public AScheduler​(Plugin plugin)
    • Method Detail

      • getPlugin

        public Plugin getPlugin()
        Description copied from interface: Scheduler
        Get the plugin
        Specified by:
        getPlugin in interface Scheduler
        Returns:
        the plugin
      • close

        public void close()
        Description copied from interface: Scheduler
        Close this scheduler
        Specified by:
        close in interface Scheduler
      • close

        public static void close​(Plugin plugin)
        Close all the schedulers belonging to the plugin
        Parameters:
        plugin - the plugin
      • closeAll

        public static boolean closeAll()
        Close all the schedulers
        Returns:
        true if there are some schedulers not belonging to MainPlugin not been closed, false otherwise