3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00
Dieser Commit ist enthalten in:
Andrew Steinborn 2021-05-15 08:59:13 -04:00
Ursprung fe2ca18955
Commit 3579fa644b

Datei anzeigen

@ -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) {