mirror of https://github.com/ViaVersion/VIAaaS.git
16 lines
436 B
Kotlin
16 lines
436 B
Kotlin
package com.viaversion.aas.packet.play
|
|
|
|
import com.viaversion.aas.packet.Packet
|
|
import com.viaversion.viaversion.api.type.Type
|
|
import io.netty.buffer.ByteBuf
|
|
|
|
class Kick : Packet {
|
|
lateinit var msg: String
|
|
override fun decode(byteBuf: ByteBuf, protocolVersion: Int) {
|
|
msg = Type.STRING.read(byteBuf)
|
|
}
|
|
|
|
override fun encode(byteBuf: ByteBuf, protocolVersion: Int) {
|
|
Type.STRING.write(byteBuf, msg)
|
|
}
|
|
} |