mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-10-04 05:38:07 +02:00
fix list wrong address
This commit is contained in:
parent
b41e29e5b7
commit
4d24a8c992
@ -184,7 +184,7 @@ class VIAaaSConsole : SimpleTerminalConsole(), ViaCommandSender {
|
|||||||
if (suggestion == null) {
|
if (suggestion == null) {
|
||||||
sendMessage("List of player connections: ")
|
sendMessage("List of player connections: ")
|
||||||
Via.getPlatform().connectionManager.connections.forEach {
|
Via.getPlatform().connectionManager.connections.forEach {
|
||||||
val pAddr = it.channel?.remoteAddress()
|
val backAddr = it.channel?.remoteAddress()
|
||||||
val pVer = it.protocolInfo?.protocolVersion?.let {
|
val pVer = it.protocolInfo?.protocolVersion?.let {
|
||||||
ProtocolVersion.getProtocol(it)
|
ProtocolVersion.getProtocol(it)
|
||||||
}
|
}
|
||||||
@ -192,10 +192,10 @@ class VIAaaSConsole : SimpleTerminalConsole(), ViaCommandSender {
|
|||||||
val backVer = it.protocolInfo?.serverProtocolVersion?.let {
|
val backVer = it.protocolInfo?.serverProtocolVersion?.let {
|
||||||
ProtocolVersion.getProtocol(it)
|
ProtocolVersion.getProtocol(it)
|
||||||
}
|
}
|
||||||
val backAddr =
|
val pAddr =
|
||||||
it.channel?.pipeline()?.get(CloudMinecraftHandler::class.java)?.other?.remoteAddress()
|
it.channel?.pipeline()?.get(CloudMinecraftHandler::class.java)?.other?.remoteAddress()
|
||||||
val pName = it.channel?.pipeline()?.get(CloudMinecraftHandler::class.java)?.data?.frontName
|
val pName = it.channel?.pipeline()?.get(CloudMinecraftHandler::class.java)?.data?.frontName
|
||||||
sendMessage("$pAddr ($pVer) ($pName) -> ($backVer) ($backName) $backAddr")
|
sendMessage("$pAddr $pVer ($pName) -> $backVer ($backName) $backAddr")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user