Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Forward-port changes from 0e0a1449
Dieser Commit ist enthalten in:
Ursprung
d43c8683cd
Commit
90b72279dc
@ -279,10 +279,6 @@ public class VelocityCommand implements SimpleCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
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);
|
||||
@ -292,7 +288,11 @@ public class VelocityCommand implements SimpleCommand {
|
||||
}
|
||||
}
|
||||
|
||||
source.sendMessage(Identity.nil(), output.args(listBuilder.build()).build());
|
||||
TranslatableComponent.Builder output = Component.translatable()
|
||||
.key("velocity.command.plugins-list")
|
||||
.color(NamedTextColor.YELLOW)
|
||||
.args(listBuilder.build());
|
||||
source.sendMessage(Identity.nil(), output);
|
||||
}
|
||||
|
||||
private TextComponent componentForPlugin(PluginDescription description) {
|
||||
|
@ -580,10 +580,14 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
||||
protocolVersion()), ((Impl) status).isSafe());
|
||||
break;
|
||||
case SUCCESS:
|
||||
sendMessage(Component.translatable("velocity.error.moved-to-new-server",
|
||||
Component requestedMessage = res.message();
|
||||
if (requestedMessage == null) {
|
||||
requestedMessage = Component.translatable("velocity.error.moved-to-new-server",
|
||||
NamedTextColor.RED,
|
||||
Component.text(originalEvent.server().serverInfo().name()),
|
||||
friendlyReason));
|
||||
friendlyReason);
|
||||
}
|
||||
sendMessage(requestedMessage);
|
||||
break;
|
||||
default:
|
||||
// The only remaining value is successful (no need to do anything!)
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren