setKeyPair

abstract fun setKeyPair(@NotNull keyPair: @NotNull KeyPair)

Sets the key pair associated with the server connection.

Usually it generates automatically with su.plo.voice.proto.packets.tcp.clientbound.ConfigPacket received, but in some rare cases (like in pv-addon-replaymod) it should be set manually.

Parameters

keyPair

The key pair to set.