diff options
author | Cow <cow@volloeko.de> | 2021-08-13 15:39:58 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2021-08-13 15:39:58 +0200 |
commit | 1f6ae18dd00482d90eb76cc278d5f5b53c686f14 (patch) | |
tree | 287c6baeae4bade3bbd8c465672947315f90cf67 /src/main/java/de/cowtipper/cowlection/util/VersionChecker.java | |
parent | 5d0f73951abb44badfd158ffedf0835aa7ba5a8a (diff) | |
download | Cowlection-1f6ae18dd00482d90eb76cc278d5f5b53c686f14.tar.gz Cowlection-1f6ae18dd00482d90eb76cc278d5f5b53c686f14.tar.bz2 Cowlection-1f6ae18dd00482d90eb76cc278d5f5b53c686f14.zip |
Added Cowshed discord invites in a few more places
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/util/VersionChecker.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/util/VersionChecker.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/util/VersionChecker.java b/src/main/java/de/cowtipper/cowlection/util/VersionChecker.java index 4fd465e..ea313c0 100644 --- a/src/main/java/de/cowtipper/cowlection/util/VersionChecker.java +++ b/src/main/java/de/cowtipper/cowlection/util/VersionChecker.java @@ -116,7 +116,12 @@ public class VersionChecker { .setChatClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, "/moo directory")) .setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(EnumChatFormatting.YELLOW + "Open mods directory with command " + EnumChatFormatting.GOLD + "/moo directory\n➜ Click to open mods directory")))); - statusMsg = text.appendSibling(download).appendSibling(spacer).appendSibling(changelog).appendSibling(spacer).appendSibling(updateInstructions).appendSibling(spacer).appendSibling(openModsDirectory); + IChatComponent discord = new ChatComponentText("[Cowshed Discord]").setChatStyle(new ChatStyle() + .setColor(EnumChatFormatting.AQUA).setBold(true) + .setChatClickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, Cowlection.INVITE_URL)) + .setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(EnumChatFormatting.YELLOW + "Need help? Join the Cowshed discord!")))); + + statusMsg = text.appendSibling(download).appendSibling(spacer).appendSibling(changelog).appendSibling(spacer).appendSibling(updateInstructions).appendSibling(spacer).appendSibling(openModsDirectory).appendSibling(spacer).appendSibling(discord); } if (statusMsg != null) { |