Fix sendPluginMessage (#926)
This commit is contained in:
@@ -155,9 +155,10 @@ public class VelocityRegisteredServer implements RegisteredServer, ForwardingAud
|
|||||||
*/
|
*/
|
||||||
public boolean sendPluginMessage(ChannelIdentifier identifier, ByteBuf data) {
|
public boolean sendPluginMessage(ChannelIdentifier identifier, ByteBuf data) {
|
||||||
for (ConnectedPlayer player : players.values()) {
|
for (ConnectedPlayer player : players.values()) {
|
||||||
VelocityServerConnection connection = player.getConnectedServer();
|
VelocityServerConnection serverConnection = player.getConnectedServer();
|
||||||
if (connection != null && connection.getServer() == this) {
|
if (serverConnection != null && serverConnection.getConnection() != null
|
||||||
return connection.sendPluginMessage(identifier, data);
|
&& serverConnection.getServer() == this) {
|
||||||
|
return serverConnection.sendPluginMessage(identifier, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user