diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2022-01-04 00:36:47 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2022-01-04 00:36:47 -0700 |
commit | 7ab8389f0f2c61056fccbe827a105413300c0789 (patch) | |
tree | 2ddd89082c6fe6d8311deaa0e053e2007503c101 /src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java | |
parent | 8dcde3ca41f45e899127891dcc64b65a6d432d55 (diff) | |
download | resurrection-7ab8389f0f2c61056fccbe827a105413300c0789.tar resurrection-7ab8389f0f2c61056fccbe827a105413300c0789.tar.gz resurrection-7ab8389f0f2c61056fccbe827a105413300c0789.tar.bz2 |
fixed all System.out calls, added command
Diffstat (limited to 'src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java')
-rw-r--r-- | src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java index d926057..59c7b30 100644 --- a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java +++ b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java @@ -4,15 +4,21 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; +import org.bukkit.plugin.java.JavaPlugin; + +import net.brysonsteck.Resurrection.Resurrection; + import java.io.*; import java.net.URL; import java.net.URLConnection; +import java.util.logging.Logger; public class CheckForUpdate { boolean success; String version; String versionURL; + Logger log = JavaPlugin.getProvidingPlugin(Resurrection.class).getLogger(); public CheckForUpdate() { try { @@ -26,7 +32,7 @@ public class CheckForUpdate { versionURL = softwareObj.get("github-release").toString(); success = true; } catch (IOException e) { - System.out.println("[Resurrection] An error has occurred while attempting to check for updates."); + log.warning("An error has occurred while attempting to check for updates."); e.printStackTrace(); } } |