geforkt von Mirrors/Velocity
Do not try to override colors in messages or server-sent messages
Dieser Commit ist enthalten in:
Ursprung
ce34a8c1b5
Commit
eb3868d911
@ -569,7 +569,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
logger.error("{}: kicked from server {}: {}", this, server.getServerInfo().getName(),
|
logger.error("{}: kicked from server {}: {}", this, server.getServerInfo().getName(),
|
||||||
plainTextReason);
|
plainTextReason);
|
||||||
handleConnectionException(server, disconnectReason, Component.text()
|
handleConnectionException(server, disconnectReason, Component.text()
|
||||||
.append(messages.getKickPrefix(server.getServerInfo().getName()))
|
.append(messages.getKickPrefix(server.getServerInfo().getName())
|
||||||
|
.colorIfAbsent(NamedTextColor.RED))
|
||||||
.color(NamedTextColor.RED)
|
.color(NamedTextColor.RED)
|
||||||
.append(disconnectReason)
|
.append(disconnectReason)
|
||||||
.build(), safe);
|
.build(), safe);
|
||||||
@ -577,8 +578,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
logger.error("{}: disconnected while connecting to {}: {}", this,
|
logger.error("{}: disconnected while connecting to {}: {}", this,
|
||||||
server.getServerInfo().getName(), plainTextReason);
|
server.getServerInfo().getName(), plainTextReason);
|
||||||
handleConnectionException(server, disconnectReason, Component.text()
|
handleConnectionException(server, disconnectReason, Component.text()
|
||||||
.append(messages.getDisconnectPrefix(server.getServerInfo().getName()))
|
.append(messages.getDisconnectPrefix(server.getServerInfo().getName())
|
||||||
.color(NamedTextColor.RED)
|
.colorIfAbsent(NamedTextColor.RED))
|
||||||
.append(disconnectReason)
|
.append(disconnectReason)
|
||||||
.build(), safe);
|
.build(), safe);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren