mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-19 15:37:42 +01:00
Fix typo
This commit is contained in:
@@ -282,15 +282,17 @@ public class VelocityCommand implements SimpleCommand {
|
|||||||
TranslatableComponent.Builder output = Component.translatable()
|
TranslatableComponent.Builder output = Component.translatable()
|
||||||
.key("velocity.command.plugins-list")
|
.key("velocity.command.plugins-list")
|
||||||
.color(NamedTextColor.YELLOW);
|
.color(NamedTextColor.YELLOW);
|
||||||
|
|
||||||
|
TextComponent.Builder listBuilder = Component.text();
|
||||||
for (int i = 0; i < pluginCount; i++) {
|
for (int i = 0; i < pluginCount; i++) {
|
||||||
PluginContainer plugin = plugins.get(i);
|
PluginContainer plugin = plugins.get(i);
|
||||||
output.append(componentForPlugin(plugin.description()));
|
listBuilder.append(componentForPlugin(plugin.description()));
|
||||||
if (i + 1 < pluginCount) {
|
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) {
|
private TextComponent componentForPlugin(PluginDescription description) {
|
||||||
|
|||||||
Reference in New Issue
Block a user