mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-10-03 05:27:44 +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) {
|
||||
sendMessage("List of player connections: ")
|
||||
Via.getPlatform().connectionManager.connections.forEach {
|
||||
val pAddr = it.channel?.remoteAddress()
|
||||
val backAddr = it.channel?.remoteAddress()
|
||||
val pVer = it.protocolInfo?.protocolVersion?.let {
|
||||
ProtocolVersion.getProtocol(it)
|
||||
}
|
||||
@ -192,10 +192,10 @@ class VIAaaSConsole : SimpleTerminalConsole(), ViaCommandSender {
|
||||
val backVer = it.protocolInfo?.serverProtocolVersion?.let {
|
||||
ProtocolVersion.getProtocol(it)
|
||||
}
|
||||
val backAddr =
|
||||
val pAddr =
|
||||
it.channel?.pipeline()?.get(CloudMinecraftHandler::class.java)?.other?.remoteAddress()
|
||||
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