PlayerConnection
A live, typed packet path to one player's current Bedrock connection.
Bedriox\Api\Player\PlayerConnection
classBedriox\Api\Player
Public methods
__construct(Closure $connected, Closure $sendPacket, ?Closure $kick = null, ?Closure $swingArm = null)Typed public method.
static disconnected(): selfTyped public method.
isConnected(): boolTyped public method.
sendPacket(Bedriox\Protocol\Packet\Packet $packet, bool $immediate = false): boolTyped public method.
kick(string $reason = '', ?string $quitMessage = null, ?string $disconnectScreenMessage = null, Bedriox\Api\Event\Player\PlayerKickCause $cause = \Bedriox\Api\Event\Player\PlayerKickCause::PLUGIN, ?string $actor = null): boolTyped public method.
swingArm(): boolTyped public method.
