From a5a001130c66e21b9e73869116f5edce585be15d Mon Sep 17 00:00:00 2001 From: manuelgu Date: Fri, 13 May 2016 19:09:40 +0200 Subject: [PATCH] Fetch latest vesion on command PS.get().update would return the URL of the latest update at the time the server was started. Not everybody is restarting their servers daily so it might end up in people not noticing an update in a long while --- .../java/com/intellectualcrafters/plot/commands/Update.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/Update.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/Update.java index 2f1b5960a..f42822bf0 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/Update.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/Update.java @@ -1,6 +1,7 @@ package com.intellectualcrafters.plot.commands; import com.intellectualcrafters.plot.PS; +import com.intellectualcrafters.plot.Updater; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.util.MainUtil; @@ -23,7 +24,7 @@ public class Update extends SubCommand { public boolean onCommand(PlotPlayer plr, String[] args) { URL url; if (args.length == 0) { - url = PS.get().update; + url = Updater.getUpdate(); } else if (args.length == 1) { try { url = new URL(args[0]);