Class AnnouncementManager

java.lang.Object
ovh.mythmc.social.api.announcements.AnnouncementManager

public final class AnnouncementManager extends Object
Manages the automatic broadcast of registered announcements.

Announcements are cycled in registration order at the interval defined in the plugin configuration. Use restartTask() to begin the scheduler. Access the singleton via Social.getAnnouncementManager().

  • Field Details

  • Constructor Details

    • AnnouncementManager

      public AnnouncementManager()
  • Method Details

    • restartTask

      public void restartTask()
      Starts the announcement scheduler if it is not already running.

      Calling this method while the scheduler is active has no effect.