From 13f4b17226cbf6d163ed03701a7887ca168ff0d7 Mon Sep 17 00:00:00 2001 From: APickledWalrus Date: Thu, 2 Jul 2020 17:42:11 -0400 Subject: [PATCH] Update Updater Disabled Message (#3083) --- src/main/java/ch/njol/skript/SkriptUpdater.java | 3 ++- src/main/resources/lang/english.lang | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/njol/skript/SkriptUpdater.java b/src/main/java/ch/njol/skript/SkriptUpdater.java index 4d63bd3dc27..bcb75561d7d 100644 --- a/src/main/java/ch/njol/skript/SkriptUpdater.java +++ b/src/main/java/ch/njol/skript/SkriptUpdater.java @@ -47,6 +47,7 @@ public class SkriptUpdater extends Updater { public final static Message m_not_started = new Message("updater.not started"); public final static Message m_checking = new Message("updater.checking"); public final static Message m_check_in_progress = new Message("updater.check in progress"); + public final static Message m_updater_disabled = new Message("updater.updater disabled"); public final static ArgsMessage m_check_error = new ArgsMessage("updater.check error"); public final static Message m_running_latest_version = new Message("updater.running latest version"); public final static Message m_running_latest_version_beta = new Message("updater.running latest version (beta)"); @@ -105,7 +106,7 @@ public CompletableFuture updateCheck(CommandSender sender) { if (isEnabled()) { Skript.error(sender, "" + m_internal_error); } else { - Skript.info(sender, "" + m_check_error.toString("updater disabled")); + Skript.info(sender, "" + m_updater_disabled); } break; } diff --git a/src/main/resources/lang/english.lang b/src/main/resources/lang/english.lang index bcc9978280f..2fccf0b4e2f 100644 --- a/src/main/resources/lang/english.lang +++ b/src/main/resources/lang/english.lang @@ -145,6 +145,7 @@ updater: not started: Skript has not yet checked for the latest version. Use /skript update check to do so. checking: Checking for the latest version of Skript... check in progress: Checking for a new version is currently in progress. + updater disabled: The updater is disabled, so a check for the latest version of Skript was not performed. check error: There was an error checking for the latest version of Skript: %s running latest version: You're currently running the latest stable version of Skript. running latest version (beta): You're currently running a beta version of Skript, and no new stable version is available. Please note that you have to update to newer beta versions manually! @@ -154,7 +155,7 @@ updater: download error: There was an error downloading the latest version of Skript: %s downloaded: The latest version of Skript has been downloaded! Restart the server or use /reload to apply the changes. internal error: An internal error occurred while checking for the latest version of Skript. Please refer to the server log for details. - custom version: You're currently running custom Skript version. No updates will be automatically installed. + custom version: You're currently running a custom Skript version. No updates will be automatically installed. # -- Commands -- commands: