diff options
author | Cow <cow@volloeko.de> | 2020-07-31 19:10:56 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-07-31 19:10:56 +0200 |
commit | a9ba18c7178a58a88995af7edd9204cbe02638f8 (patch) | |
tree | 4a1a8af12cf42945060787f9f9950bccb4f79199 /src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java | |
parent | 86737c14f70bd5936e9492d9f3b53c4702f5aa55 (diff) | |
download | Cowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.tar.gz Cowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.tar.bz2 Cowlection-a9ba18c7178a58a88995af7edd9204cbe02638f8.zip |
SkyBlock Dungeon Party Finder: Added lookup of joined players' armor
- can be disabled or changed with /moo config
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java b/src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java index 062d488..4694fee 100644 --- a/src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java +++ b/src/main/java/de/cowtipper/cowlection/util/MooChatComponent.java @@ -143,8 +143,15 @@ public class MooChatComponent extends ChatComponentText { } public MooChatComponent setSuggestCommand(String command) { + setSuggestCommand(command, true); + return this; + } + + public MooChatComponent setSuggestCommand(String command, boolean addTooltip) { setChatStyle(getChatStyle().setChatClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, command))); - setHover(new KeyValueChatComponent("Run", command, " ")); + if (addTooltip) { + setHover(new KeyValueChatComponent("Run", command, " ")); + } return this; } |