From 3579fa644b6ea816b93620f087424f5e9f1ad5ab Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 15 May 2021 08:59:13 -0400 Subject: [PATCH] Fix typo --- .../proxy/command/builtin/VelocityCommand.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java index 0d4933516..61931379f 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/command/builtin/VelocityCommand.java @@ -282,15 +282,17 @@ public class VelocityCommand implements SimpleCommand { TranslatableComponent.Builder output = Component.translatable() .key("velocity.command.plugins-list") .color(NamedTextColor.YELLOW); + + TextComponent.Builder listBuilder = Component.text(); for (int i = 0; i < pluginCount; i++) { PluginContainer plugin = plugins.get(i); - output.append(componentForPlugin(plugin.description())); + listBuilder.append(componentForPlugin(plugin.description())); if (i + 1 < pluginCount) { - output.append(Component.text(", ")); + listBuilder.append(Component.text(", ")); } } - source.sendMessage(Identity.nil(), output.build()); + source.sendMessage(Identity.nil(), output.args(listBuilder.build()).build()); } private TextComponent componentForPlugin(PluginDescription description) {