diff options
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java b/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java index 6229e0e..bb4d916 100644 --- a/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java +++ b/src/main/java/de/cowtipper/cowlection/handler/FriendsHandler.java @@ -192,7 +192,12 @@ public class FriendsHandler { bestFriendsComponent.appendFreshSibling(new MooChatComponent("Failed to check " + EnumChatFormatting.DARK_RED + bestFriendsOnlineStatusWithApiErrors.size() + EnumChatFormatting.RED + " best friends' online status due to Hypixel API errors: " + EnumChatFormatting.DARK_RED + bestFriendsWithApiErrors).red()); bestFriendsOnlineStatusWithApiErrors.clear(); } - main.getChatHelper().sendMessage(bestFriendsComponent); + if (isCommandTriggered) { + main.getChatHelper().sendMessage(bestFriendsComponent); + } else { + // delay by 4 seconds so the message doesn't get buried due to the server welcome messages + new TickDelay(() -> main.getChatHelper().sendMessage(bestFriendsComponent), 80); + } } }); } |