Class UpdateChecker

java.lang.Object
me.manossef.semihardcore.UpdateChecker

public class UpdateChecker extends Object
An update checker for a resource from SpigotMC that is installed as a plugin on the server.
  • Constructor Details

    • UpdateChecker

      public UpdateChecker(org.bukkit.plugin.Plugin plugin, int resourceId, String resourceWebName)
      Constructs a new update checker for a resource.
      Parameters:
      plugin - the resource in its current version
      resourceId - the numeric ID of the resource on SpigotMC
      resourceWebName - the URL name of the resource on SpigotMC
  • Method Details

    • checkForUpdates

      public void checkForUpdates()
      Checks the resource for updates.
    • getPluginName

      public String getPluginName()
      Returns the resource's name.
      Returns:
      the resource's name.