Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Fix typo
Dieser Commit ist enthalten in:
Ursprung
fe2ca18955
Commit
3579fa644b
@ -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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren