public void verify() throws IOException { if (pluginVersion.endsWith("-SNAPSHOT")) { return; // SNAPSHOT versions ignore updates } lastKnownVersion = VersionUtil.getVersion(plugin.getHttpClient(), "sponge", secret); if (lastKnownVersion == null) { return; } // Compare versions String latestVersionString = lastKnownVersion.getVersion(); if (!latestVersionString.equals(pluginVersion)) { upToDate = !isVersionGreater(pluginVersion, latestVersionString); if (!upToDate) { plugin.getLogger().info(plugin.getI18n().get("update_available", lastKnownVersion.getVersion())); } } }
public void verify() throws IOException { if (pluginVersion.endsWith("-SNAPSHOT")) { return; // SNAPSHOT versions ignore updates } lastKnownVersion = VersionUtil.getVersion(plugin.getHttpClient(), "bungeecord", secret); if (lastKnownVersion == null) { return; } // Compare versions String latestVersionString = lastKnownVersion.getVersion(); if (!latestVersionString.equals(pluginVersion)) { upToDate = !isVersionGreater(pluginVersion, latestVersionString); if (!upToDate) { plugin.getLogger().info(plugin.getI18n().get("update_available", lastKnownVersion.getVersion())); } } }
public void verify() throws IOException { if (pluginVersion.endsWith("-SNAPSHOT")) { return; // SNAPSHOT versions ignore updates } lastKnownVersion = VersionUtil.getVersion(plugin.getHttpClient(), "bukkit", secret); if (lastKnownVersion == null) { return; } // Compare versions String latestVersionString = lastKnownVersion.getVersion(); if (!latestVersionString.equals(pluginVersion)) { upToDate = !isVersionGreater(pluginVersion, latestVersionString); if (!upToDate) { plugin.getLogger().info(plugin.getI18n().get("update_available", lastKnownVersion.getVersion())); } } }
public void verify() throws IOException { if (pluginVersion.endsWith("-SNAPSHOT")) { return; // SNAPSHOT versions ignore updates } lastKnownVersion = VersionUtil.getVersion(plugin.getHttpClient(), "nukkit", secret); if (lastKnownVersion == null) { return; } // Compare versions String latestVersionString = lastKnownVersion.getVersion(); if (!latestVersionString.equals(pluginVersion)) { upToDate = !isVersionGreater(pluginVersion, latestVersionString); if (!upToDate) { plugin.getLogger().info(plugin.getI18n().get("update_available", lastKnownVersion.getVersion())); } } }