Class UpdateChecker

java.lang.Object
me.lorenzo0111.pluginslib.updater.UpdateChecker

public class UpdateChecker extends Object
Spigot Update Checker
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(IScheduler scheduler, String version, String name, int resourceId, String url, @Nullable @Nullable String prefix, @Nullable @Nullable String api)
      Parameters:
      scheduler - Scheduler
      version - Version of the plugin
      name - Name of the plugin
      resourceId - Spigot resource id
      url - Download url of the plugin. Not the api url
      prefix - Prefix of the updater
      api - The url of the api. If set to null it will use the spigot api
  • Method Details

    • sendUpdateCheck

      public void sendUpdateCheck(net.kyori.adventure.audience.Audience entity)
      Parameters:
      entity - Entity to send the update message