From e0511bf26ceb14b429f44ec01b9448a13f203791 Mon Sep 17 00:00:00 2001 From: My-Name-Is-Jeff <37018278+My-Name-Is-Jeff@users.noreply.github.com> Date: Mon, 21 Dec 2020 18:20:12 -0500 Subject: Add 2 second delay before notices are sent --- src/main/java/me/Danker/DankersSkyblockMod.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java') diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java index d4d9b47..07aa188 100644 --- a/src/main/java/me/Danker/DankersSkyblockMod.java +++ b/src/main/java/me/Danker/DankersSkyblockMod.java @@ -345,6 +345,11 @@ public class DankersSkyblockMod { } continue; } + try { + Thread.sleep(2000); + } catch (InterruptedException e) { + e.printStackTrace(); + } Minecraft.getMinecraft().thePlayer.addChatMessage(chatComponent); break; } @@ -364,6 +369,11 @@ public class DankersSkyblockMod { e.printStackTrace(); } } else { + try { + Thread.sleep(2000); + } catch (InterruptedException e) { + e.printStackTrace(); + } Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "You are using spiderfrog's OldAnimationsMod.\n" + "Danker's Skyblock Mod is incompatible with OldAnimationsMod.\n" + -- cgit