diff --git a/Plan/build.gradle b/Plan/build.gradle index e313095e2..d91b9edc8 100644 --- a/Plan/build.gradle +++ b/Plan/build.gradle @@ -74,7 +74,7 @@ subprojects { ext.spongeVersion = "7.1.0" ext.nukkitVersion = "1.0-SNAPSHOT" ext.bungeeVersion = "1.16-R0.3" - ext.velocityVersion = "1.0-SNAPSHOT" + ext.velocityVersion = "1.0.0-SNAPSHOT" ext.redisBungeeVersion = "0.3.8-SNAPSHOT" ext.httpClientVersion = "4.5.12" diff --git a/Plan/velocity/src/main/java/com/djrapitops/plan/commands/use/VelocityMessageBuilder.java b/Plan/velocity/src/main/java/com/djrapitops/plan/commands/use/VelocityMessageBuilder.java index f0118a9f7..4d8f14a7b 100644 --- a/Plan/velocity/src/main/java/com/djrapitops/plan/commands/use/VelocityMessageBuilder.java +++ b/Plan/velocity/src/main/java/com/djrapitops/plan/commands/use/VelocityMessageBuilder.java @@ -46,19 +46,19 @@ public class VelocityMessageBuilder implements MessageBuilder { @Override public MessageBuilder link(String url) { - builder.clickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, url)); + builder.clickEvent(ClickEvent.openUrl(url)); return this; } @Override public MessageBuilder command(String command) { - builder.clickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command)); + builder.clickEvent(ClickEvent.runCommand(command)); return this; } @Override public MessageBuilder hover(String s) { - builder.hoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, TextComponent.of(s))); + builder.hoverEvent(HoverEvent.showText(TextComponent.of(s))); return this; } @@ -68,7 +68,7 @@ public class VelocityMessageBuilder implements MessageBuilder { for (String string : strings) { hoverText.content(string); } - builder.hoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverText.build())); + builder.hoverEvent(HoverEvent.showText(hoverText.build())); return this; } @@ -78,7 +78,7 @@ public class VelocityMessageBuilder implements MessageBuilder { for (String string : collection) { hoverText.content(string); } - builder.hoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverText.build())); + builder.hoverEvent(HoverEvent.showText(hoverText.build())); return this; }