mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-28 12:07:35 +01:00
Updated velocity version
This commit is contained in:
parent
78888ff26d
commit
6c8a9f9294
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user