fix deprecated warning

This commit is contained in:
creeper123123321 2021-03-26 17:42:30 -03:00
parent 6ff3b1e5e0
commit 782d4999d5

View File

@ -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()