diff --git a/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/BukkitUpdater.java b/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/BukkitUpdater.java index 39fabfeb..e00bb069 100644 --- a/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/BukkitUpdater.java +++ b/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/BukkitUpdater.java @@ -354,11 +354,12 @@ public class BukkitUpdater extends Updater { this.plugin.getLogger().warning("Please double-check your configuration to ensure it is correct."); this.result = UpdateResult.FAIL_APIKEY; } else { - this.plugin.getLogger().warning("The updater could not contact dev.bukkit.org for updating."); - this.plugin.getLogger().warning("If you have not recently modified your configuration and this is the first time you are seeing this message, the site may be experiencing temporary downtime."); + // People don't care + // this.plugin.getLogger().warning("The updater could not contact dev.bukkit.org for updating."); + // this.plugin.getLogger().warning("If you have not recently modified your configuration and this is the first time you are seeing this message, the site may be experiencing temporary downtime."); this.result = UpdateResult.FAIL_DBO; } - e.printStackTrace(); + // e.printStackTrace(); return false; } } diff --git a/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/SpigotUpdater.java b/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/SpigotUpdater.java index 708efdd6..4bd52b2b 100644 --- a/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/SpigotUpdater.java +++ b/modules/ProtocolLib/src/main/java/com/comphenix/protocol/updater/SpigotUpdater.java @@ -21,7 +21,6 @@ import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; -import java.util.logging.Level; import org.bukkit.plugin.Plugin; @@ -75,7 +74,8 @@ public final class SpigotUpdater extends Updater { ProtocolLibrary.getErrorReporter().reportDetailed( SpigotUpdater.this, Report.newBuilder(REPORT_CANNOT_UPDATE_PLUGIN).error(ex).callerParam(this)); } else { - plugin.getLogger().log(Level.WARNING, "Failed to check for updates: " + ex); + // People don't care + // plugin.getLogger().log(Level.WARNING, "Failed to check for updates: " + ex); } ProtocolLibrary.disableUpdates(); diff --git a/modules/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java b/modules/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java index 52efb9f7..c1273bd2 100644 --- a/modules/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java +++ b/modules/ProtocolLib/src/test/java/com/comphenix/protocol/updater/UpdaterTest.java @@ -23,21 +23,21 @@ public class UpdaterTest { private static final int BUKKIT_DEV_ID = 45564; private static Plugin plugin; - //@BeforeClass + // @BeforeClass public static void preparePlugin() { Server server = mock(Server.class); when(server.getUpdateFolder()).thenReturn(null); plugin = mock(Plugin.class); String version = System.getProperty("projectVersion"); - if (version == null) version = "4.0.1-SNAPSHOT-b281"; + if (version == null) version = "4.2.1"; when(plugin.getDescription()).thenReturn(new PluginDescriptionFile("ProtocolLib", version, null)); when(plugin.getLogger()).thenReturn(Logger.getLogger("ProtocolLib")); when(plugin.getDataFolder()).thenReturn(null); when(plugin.getServer()).thenReturn(server); } - //@Test + // @Test public void testSpigotUpdater() { SpigotUpdater updater = new SpigotUpdater(plugin, UpdateType.NO_DOWNLOAD, true); @@ -54,7 +54,7 @@ public class UpdaterTest { System.out.println("Update available: " + updater.versionCheck(remote)); } - //@Test + // @Test public void testBukkitUpdater() { BukkitUpdater updater = new BukkitUpdater(plugin, BUKKIT_DEV_ID, null, UpdateType.NO_DOWNLOAD, true); if (! updater.read()) {