Bump to 2.0.2, fix about menu formatting

dependabot/gradle/net.kyori-adventure-api-4.14.0 2.0.2
William 2 years ago
parent b8c994d52f
commit cc8e1113ae
No known key found for this signature in database

@ -6,7 +6,7 @@ plugins {
} }
group 'net.william278' group 'net.william278'
version '2.0' version '2.0.2'
defaultTasks 'licenseFormat', 'build' defaultTasks 'licenseFormat', 'build'
repositories { repositories {

@ -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));
} }

Loading…
Cancel
Save