Skip to main content

Overview

The KickPlayer function allows staff members to remove players from the server immediately. All kicks are logged and can trigger webhook notifications if configured.

KickPlayer

Remove a player from the server with a specified reason.

Syntax

Parameters

  • staffId (number) - Server ID of the staff member performing the kick
  • targetId (number) - Server ID of the player to kick
  • reason (string) - Reason for the kick (minimum 3 characters)

Returns

  • success (boolean) - Whether the kick was successful
  • status (string) - Status code: 'success', 'no_permission', 'player_not_found', 'invalid_target', 'invalid_reason'

Example

Advanced Examples

Kick with Warning Integration

Scheduled Kick System

Mass Kick System

Kick Prevention System

Kick Analytics and Reporting

Error Handling

Handle common scenarios when kicking players:
Kicks immediately remove players from the server. Always ensure you have proper justification and consider using warnings for minor infractions.
Implement kick protection systems for VIP players or new players to prevent accidental removals and improve server experience.