mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-10-01 05:08:08 +02:00
fix deprecated warning
This commit is contained in:
parent
6ff3b1e5e0
commit
782d4999d5
@ -11,7 +11,7 @@ object ConnectionsSubCommand : ViaSubCommand() {
|
||||
override fun description(): String = "Lists VIAaaS connections"
|
||||
override fun execute(p0: ViaCommandSender, p1: Array<out String>): Boolean {
|
||||
p0.sendMessage("List of player connections: ")
|
||||
Via.getPlatform().connectionManager.connections.forEach {
|
||||
Via.getManager().connectionManager.connections.forEach {
|
||||
val handler = it.channel?.pipeline()?.get(MinecraftHandler::class.java)
|
||||
val backAddr = handler?.endRemoteAddress
|
||||
val pVer = it.protocolInfo?.protocolVersion?.parseProtocol()
|
||||
|
Loading…
Reference in New Issue
Block a user