Class VersionChecker

java.lang.Object
org.strassburger.lifestealz.util.VersionChecker

public final class VersionChecker extends Object
VersionChecker is a utility class that checks for updates of the LifeStealZ plugin by querying the Modrinth API for the latest version compatible with the current Minecraft version.
  • Constructor Details

    • VersionChecker

      public VersionChecker(LifeStealZ plugin, String modrinthProjectId)
  • Method Details

    • isNewVersionAvailable

      public boolean isNewVersionAvailable()
      Checks if a new version of the plugin is available.
      Returns:
      true if a new version is available, false otherwise.