From 939ef8559410aac8be2e09db8acc83648d2e9d31 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sat, 15 Jan 2022 23:27:05 -0700 Subject: added a message from the server, now ready for release --- src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/brysonsteck/Resurrection/startup') diff --git a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java index 59c7b30..1e85cf7 100644 --- a/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java +++ b/src/net/brysonsteck/Resurrection/startup/CheckForUpdate.java @@ -18,6 +18,7 @@ public class CheckForUpdate { boolean success; String version; String versionURL; + String message; Logger log = JavaPlugin.getProvidingPlugin(Resurrection.class).getLogger(); public CheckForUpdate() { @@ -30,6 +31,7 @@ public class CheckForUpdate { version = softwareObj.get("current-release").toString(); version = version.replace("\"", ""); versionURL = softwareObj.get("github-release").toString(); + message = softwareObj.get("message").toString(); success = true; } catch (IOException e) { log.warning("An error has occurred while attempting to check for updates."); @@ -64,4 +66,8 @@ public class CheckForUpdate { public String getVersion() { return version; } + + public String getMessage() { + return message; + } } -- cgit v1.2.3