Class SpigotUpdateChecker


public class SpigotUpdateChecker extends VersionStringUpdateChecker
Update checking mechanism for Spigot plugins.
  • Constructor Details

    • SpigotUpdateChecker

      public SpigotUpdateChecker(SquirtgunPlugin<?> plugin, int pluginId, net.kyori.adventure.text.Component updateMessage, String listenerPermission)
      Creates a new update checker, and schedule update checking every 3 hours.
      Parameters:
      plugin - the plugin to check against
      pluginId - the numeric spigot resource id
      updateMessage - the message to show in console and to players with the listener permission on join
      listenerPermission - if a player holds this permission and an update is available, they will be sent the update message in chat