diff --git a/pom.xml b/pom.xml
index 479a1cc..7f36f1a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
com.github.ucchyocean
LunaChat
- 3.0.15
+ 3.0.16
A powerfull chat channel plugin with IME (Kana-Kanji conversion) support
https://github.com/ucchyocean/LunaChat
@@ -217,7 +217,7 @@
com.gmail.nossr50.mcMMO
mcMMO
- 2.1.145
+ 2.1.146
true
provided
diff --git a/src/main/java/com/github/ucchyocean/lc3/util/ClickableFormat.java b/src/main/java/com/github/ucchyocean/lc3/util/ClickableFormat.java
index dd84e21..917bd96 100644
--- a/src/main/java/com/github/ucchyocean/lc3/util/ClickableFormat.java
+++ b/src/main/java/com/github/ucchyocean/lc3/util/ClickableFormat.java
@@ -205,8 +205,13 @@ public class ClickableFormat {
String command = matcher.group(4);
TextComponent tc = new TextComponent(TextComponent.fromLegacyText(text));
if ( !hover.isEmpty() ) {
- tc.setHoverEvent(new HoverEvent(
- HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hover).create()));
+ @SuppressWarnings("deprecation")
+ HoverEvent event = new HoverEvent(
+ HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(hover).create());
+ // bungeecord-chat v1.16-R0.3 style.
+// HoverEvent event = new HoverEvent(
+// HoverEvent.Action.SHOW_TEXT, new Text(hover));
+ tc.setHoverEvent(event);
}
if ( type.equals("RUN_COMMAND") ) {
tc.setClickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command));