13
0
geforkt von Mirrors/Velocity

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: case SUCCESS:
Component requestedMessage = res.getMessageComponent(); Component requestedMessage = res.getMessageComponent();
if (requestedMessage == null) { if (requestedMessage == null) {
requestedMessage = Component.translatable("velocity.error.moved-to-new-server", requestedMessage = friendlyReason;
NamedTextColor.RED,
Component.text(originalEvent.getServer().getServerInfo().getName()),
friendlyReason);
} }
sendMessage(requestedMessage); sendMessage(requestedMessage);
break; break;