|
|
@ -90,7 +90,7 @@ public class AboutMenu {
|
|
|
|
|
|
|
|
|
|
|
|
// Add buttons
|
|
|
|
// Add buttons
|
|
|
|
if (!buttons.isEmpty()) {
|
|
|
|
if (!buttons.isEmpty()) {
|
|
|
|
builder.append(Component.newline())
|
|
|
|
builder.append(Component.newline()).append(Component.newline())
|
|
|
|
.append(Component.text("Links: ").color(secondaryColor));
|
|
|
|
.append(Component.text("Links: ").color(secondaryColor));
|
|
|
|
buttons.stream().map(Link::toComponent).forEach(link -> builder
|
|
|
|
buttons.stream().map(Link::toComponent).forEach(link -> builder
|
|
|
|
.append(link)
|
|
|
|
.append(link)
|
|
|
@ -272,7 +272,7 @@ public class AboutMenu {
|
|
|
|
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@NotNull
|
|
|
|
public Component toComponent() {
|
|
|
|
public Component toComponent() {
|
|
|
|
return Component.text((icon == null ? "" : icon) + " " + text, color)
|
|
|
|
return Component.text("[" + (icon == null ? "" : icon) + " " + text + "]", color)
|
|
|
|
.clickEvent(ClickEvent.openUrl(url));
|
|
|
|
.clickEvent(ClickEvent.openUrl(url));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|