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'
version '2.0'
version '2.0.2'
defaultTasks 'licenseFormat', 'build'
repositories {

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

Loading…
Cancel
Save