diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java index f799d0fd7..e8d0054ff 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/BukkitMain.java @@ -60,7 +60,6 @@ import com.github.intellectualsites.plotsquared.plot.util.StringMan; import com.github.intellectualsites.plotsquared.plot.util.TaskManager; import com.github.intellectualsites.plotsquared.plot.util.UUIDHandler; import com.github.intellectualsites.plotsquared.plot.util.UUIDHandlerImplementation; -import com.github.intellectualsites.plotsquared.plot.util.UpdateUtility; import com.github.intellectualsites.plotsquared.plot.util.WorldUtil; import com.github.intellectualsites.plotsquared.plot.util.block.QueueProvider; import com.github.intellectualsites.plotsquared.plot.uuid.UUIDWrapper; @@ -163,38 +162,6 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain return; } - // Check for updates - if (PlotSquared.get().getUpdateUtility() != null) { - final UpdateUtility updateUtility = PlotSquared.get().getUpdateUtility(); - updateUtility.checkForUpdate(PlotSquared.get().getVersion().versionString(), - ((updateDescription, throwable) -> { - Bukkit.getScheduler().runTask(BukkitMain.this, () -> { - getLogger().info("-------- PlotSquared Update Check --------"); - if (throwable != null) { - getLogger().severe(String - .format("Could not check for updates. Reason: %s", - throwable.getMessage())); - } else { - if (updateDescription == null) { - getLogger().info( - "You appear to be running the latest version of PlotSquared. Congratulations!"); - } else { - getLogger() - .info("There appears to be a PlotSquared update available!"); - getLogger().info(String.format( - "You are running version %s, the newest available version is %s", - getPluginVersionString(), updateDescription.getVersion())); - getLogger().info( - String.format("Update URL: %s", updateDescription.getUrl())); - } - } - getLogger().info("-------- PlotSquared Update Check --------"); - }); - })); - } else { - getLogger().warning("Update checking disabled. Skipping."); - } - this.startMetrics(); if (Settings.Enabled_Components.WORLDS) { TaskManager.IMP.taskRepeat(this::unload, 20); diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Settings.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Settings.java index 8e1f5ef5b..c71762f7e 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Settings.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Settings.java @@ -331,7 +331,8 @@ public class Settings extends Config { true; @Comment("The UUID cacher is used to resolve player names") public static boolean UUID_CACHE = true; - @Comment("The plugin auto updater will notify you if updates are available.") public static boolean UPDATER = true; + @Comment({"@deprecated PlotSquared v4 will no longer receive updates, consider updating to v5", "The plugin auto updater will notify you if updates are available."}) + public static boolean UPDATER = true; @Comment("Stores user metadata in a database") public static boolean PERSISTENT_META = true; @Comment("Optimizes permission checks") public static boolean PERMISSION_CACHE = true; @Comment("Optimizes block changing code") public static boolean BLOCK_CACHE = true;