mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Updated velocity version
This commit is contained in:
parent
78888ff26d
commit
6c8a9f9294
@ -74,7 +74,7 @@ subprojects {
|
|||||||
ext.spongeVersion = "7.1.0"
|
ext.spongeVersion = "7.1.0"
|
||||||
ext.nukkitVersion = "1.0-SNAPSHOT"
|
ext.nukkitVersion = "1.0-SNAPSHOT"
|
||||||
ext.bungeeVersion = "1.16-R0.3"
|
ext.bungeeVersion = "1.16-R0.3"
|
||||||
ext.velocityVersion = "1.0-SNAPSHOT"
|
ext.velocityVersion = "1.0.0-SNAPSHOT"
|
||||||
ext.redisBungeeVersion = "0.3.8-SNAPSHOT"
|
ext.redisBungeeVersion = "0.3.8-SNAPSHOT"
|
||||||
|
|
||||||
ext.httpClientVersion = "4.5.12"
|
ext.httpClientVersion = "4.5.12"
|
||||||
|
@ -46,19 +46,19 @@ public class VelocityMessageBuilder implements MessageBuilder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MessageBuilder link(String url) {
|
public MessageBuilder link(String url) {
|
||||||
builder.clickEvent(new ClickEvent(ClickEvent.Action.OPEN_URL, url));
|
builder.clickEvent(ClickEvent.openUrl(url));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MessageBuilder command(String command) {
|
public MessageBuilder command(String command) {
|
||||||
builder.clickEvent(new ClickEvent(ClickEvent.Action.RUN_COMMAND, command));
|
builder.clickEvent(ClickEvent.runCommand(command));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MessageBuilder hover(String s) {
|
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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ public class VelocityMessageBuilder implements MessageBuilder {
|
|||||||
for (String string : strings) {
|
for (String string : strings) {
|
||||||
hoverText.content(string);
|
hoverText.content(string);
|
||||||
}
|
}
|
||||||
builder.hoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverText.build()));
|
builder.hoverEvent(HoverEvent.showText(hoverText.build()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ public class VelocityMessageBuilder implements MessageBuilder {
|
|||||||
for (String string : collection) {
|
for (String string : collection) {
|
||||||
hoverText.content(string);
|
hoverText.content(string);
|
||||||
}
|
}
|
||||||
builder.hoverEvent(new HoverEvent(HoverEvent.Action.SHOW_TEXT, hoverText.build()));
|
builder.hoverEvent(HoverEvent.showText(hoverText.build()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user