Skip to content

Commit

Permalink
Update Updater Disabled Message (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
APickledWalrus authored Jul 2, 2020
1 parent 49a3394 commit 13f4b17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/ch/njol/skript/SkriptUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)");
Expand Down Expand Up @@ -105,7 +106,7 @@ public CompletableFuture<Void> 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;
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/lang/english.lang
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ updater:
not started: Skript has not yet checked for the latest version. Use <gold>/skript update check<reset> 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: <red>There was an error checking for the latest version of Skript:<light red> %s
running latest version: You're currently running the latest stable version of Skript.
running latest version (beta): You're currently running a <i>beta<r> version of Skript, and no new <i>stable<r> version is available. Please note that you have to update to newer beta versions manually!
Expand All @@ -154,7 +155,7 @@ updater:
download error: <red>There was an error downloading the latest version of Skript:<light red> %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:
Expand Down

0 comments on commit 13f4b17

Please sign in to comment.