Skip to main content

Overview

The CheckBan function allows staff members to verify if a player is currently banned and retrieve detailed ban information for review and decision-making.

CheckBan

Check if a player is currently banned and retrieve ban details.

Syntax

Parameters

  • targetId (number) - Server ID of the player to check

Returns

  • isBanned (boolean) - Whether the player is currently banned
  • banInfo (table|nil) - Ban information object if banned, nil if not banned

Ban Info Structure

Example

Advanced Examples

Comprehensive Ban Information Display

Ban Status Monitoring System

Ban History Analysis

Bulk Ban Status Check

Error Handling

Ban status checking is essential for verifying player eligibility and making informed moderation decisions. Always check ban status before issuing additional punishments.
Use ban monitoring systems to track ban expiration times and ensure timely follow-up actions or automatic unbans when appropriate.