aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-30 10:55:25 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-30 10:55:25 +0200
commit60f942503864ac897484f7dd31a21c1cb03a04a2 (patch)
tree6fc0f2e0041031090a78d356f6973249f6a659d5 /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
parent8e43f9f23835e802b5caea2585db8a50a6408fbb (diff)
parent90ad79d106fd36f50edaf8a2bed6c4ee0210050d (diff)
downloadnotenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.tar.gz
notenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.tar.bz2
notenoughupdates-60f942503864ac897484f7dd31a21c1cb03a04a2.zip
Merge remote-tracking branch 'dokm/master'
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java5
1 files changed, 5 insertions, 0 deletions
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 3e84261c..7f1c20d3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
@@ -1045,6 +1045,11 @@ public class Utils {
style.setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(EnumChatFormatting.YELLOW+value)));
return style;
}
+ public static ChatStyle createClickStyle(ClickEvent.Action action, String value, String message) {
+ ChatStyle style = createClickStyle(action, value);
+ style.setChatHoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ChatComponentText(message)));
+ return style;
+ }
public static void recursiveDelete(File file) {
if(file.isDirectory() && !Files.isSymbolicLink(file.toPath())) {