Class ModrinthUpdateChecker
java.lang.Object
com.zetaplugins.zetacore.services.updatechecker.UpdateChecker
com.zetaplugins.zetacore.services.updatechecker.ModrinthUpdateChecker
ModrinthUpdateChecker checks for updates of a JavaPlugin by querying the Modrinth API.
-
Constructor Summary
ConstructorsConstructorDescriptionModrinthUpdateChecker(JavaPlugin plugin, String projectId) Constructs a ModrinthUpdateChecker for the given plugin and project ID. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckForUpdates(boolean logMessage) Checks for updates for the plugin.getVersionUrl(String version) Methods inherited from class com.zetaplugins.zetacore.services.updatechecker.UpdateChecker
getLatestVersion, getLogger, getNewVersionConsoleMessage, getPlugin, isNewVersionAvailable, setLatestVersion, setNewVersionAvailable
-
Constructor Details
-
ModrinthUpdateChecker
Constructs a ModrinthUpdateChecker for the given plugin and project ID.- Parameters:
plugin- The JavaPlugin to check updates forprojectId- The Modrinth project ID
-
-
Method Details
-
checkForUpdates
public void checkForUpdates(boolean logMessage) Description copied from class:UpdateCheckerChecks for updates for the plugin.- Specified by:
checkForUpdatesin classUpdateChecker- Parameters:
logMessage- If true, logs a message if a new version is available
-
getLatestVersionUrl
- Specified by:
getLatestVersionUrlin classUpdateChecker
-
getVersionUrl
-