TcpServerPacketManager

Used to send Plasmo Voice related TCP packets to the players.

Functions

Link copied to clipboard
abstract fun broadcast(p: @NotNull Packet<T>, p1: Predicate<P>)
Link copied to clipboard
abstract fun broadcastPlayerDisconnect(@NotNull player: @NotNull VoiceServerPlayer)
Broadcasts a PlayerDisconnectPacket to all connected players to inform them about a player's disconnection from the PV.
Link copied to clipboard
abstract fun broadcastPlayerInfoUpdate(@NotNull player: @NotNull VoiceServerPlayer)
Broadcasts a PlayerInfoUpdatePacket to all connected players to update player information.
Link copied to clipboard
abstract fun connect(@NotNull receiver: @NotNull VoiceServerPlayer)
Sends a ConnectionPacket to the player.
Link copied to clipboard
abstract fun requestPlayerInfo(@NotNull receiver: @NotNull VoiceServerPlayer)
Sends a PlayerInfoRequestPacket to the player.
Link copied to clipboard
abstract fun sendConfigInfo(@NotNull receiver: @NotNull VoiceServerPlayer)
Sends a ConfigPacket to the player.
Link copied to clipboard
abstract fun sendPlayerList(@NotNull receiver: @NotNull VoiceServerPlayer)
Sends a PlayerListPacket to the player to provide the list of connected players.