kick

fun kick(player: Player, reason: Component = Component.translatable("multiplayer.disconnect.kicked"))

Kick a player with an optional reason component.

Parameters

player

target Player (ServerPlayer required to disconnect)

reason

disconnect reason component