Skip to main content

Kick

Removes a player from the server with a reason. The player sees the Kick Message.

Command​

/kick <player> [reason]
/kick Bob Spamming
/kick #3 AFK
/kick "Some Name" Please read the rules

Permission: servercore.kick

Blueprint​

Kick Player (Caller, Player Id, Reason) → Result

  1. Get Server Core
  2. Kick Player with a caller from Make Caller (an admin's player controller) or Make System Caller (game logic)
  3. Check the returned Result

C++​

UServerCoreSubsystem* ServerCore = UServerCoreSubsystem::Get(this);
const EServerCoreResult Result = ServerCore->KickPlayer(
ServerCore->MakeCaller(AdminController), TargetPlayerId, TEXT("Spamming"));

Rules​

  • The target must be online.
  • Players can only kick players with a lower group priority (see Permission Groups).
  • You can't kick yourself or the listen server host.
  • The kick is written to the Admin Log and fires On Player Kicked.