3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Fix repeating "you were kicked from X" message

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-07-30 15:42:34 -04:00
Ursprung 211da180b3
Commit d3e1b358fb

Datei anzeigen

@ -639,10 +639,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
case SUCCESS:
Component requestedMessage = res.getMessageComponent();
if (requestedMessage == null) {
requestedMessage = Component.translatable("velocity.error.moved-to-new-server",
NamedTextColor.RED,
Component.text(originalEvent.getServer().getServerInfo().getName()),
friendlyReason);
requestedMessage = friendlyReason;
}
sendMessage(requestedMessage);
break;