aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorIsaiah <73615108+lightningik@users.noreply.github.com>2023-10-02 07:50:15 -0700
committerGitHub <noreply@github.com>2023-10-02 16:50:15 +0200
commitfe5d224ed60ae5717e88f5333d02b7699ea62f61 (patch)
tree7af124e59f66586c391356e54475dd5b4f594876 /src/main
parent981acc84d7426c8b643492b24a8731208976d6e2 (diff)
downloadNotEnoughUpdates-fe5d224ed60ae5717e88f5333d02b7699ea62f61.tar.gz
NotEnoughUpdates-fe5d224ed60ae5717e88f5333d02b7699ea62f61.tar.bz2
NotEnoughUpdates-fe5d224ed60ae5717e88f5333d02b7699ea62f61.zip
Make Update Notification timeout after 10 seconds. (#846)
Co-authored-by: LightningYTlol <unconfigured@null.spigotmc.org>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
index f41654e7..ac77d276 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
@@ -159,7 +159,7 @@ public class AutoUpdater {
"",
"§eThere is a new version of NotEnoughUpdates available.",
"§eCheck the chat for more information"
- ), true);
+ ), false);
try {
if (directDownload != null)
updateFromURL(new URL(directDownload));
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
index 93d7687b..47549fec 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
@@ -2240,6 +2240,8 @@ public class Utils {
EnumChatFormatting.RED + EnumChatFormatting.BOLD.toString() + "Missing repo data",
EnumChatFormatting.RED +
"Data used for many NEU features is not up to date, this should normally not be the case.",
+ EnumChatFormatting.RED +
+ "Please make sure you are on the latest version of NEU.",
EnumChatFormatting.RED + "You can try " + EnumChatFormatting.BOLD + "/neuresetrepo" + EnumChatFormatting.RESET +
EnumChatFormatting.RED + " and restart your game" +
" to see if that fixes the issue.",
@@ -2248,7 +2250,7 @@ public class Utils {
EnumChatFormatting.RESET + EnumChatFormatting.RED + " and message in " + EnumChatFormatting.BOLD +
"#neu-support" + EnumChatFormatting.RESET + EnumChatFormatting.RED + " to get support"
),
- true, true
+ false, true
);
}
}