πExports
-- Bans a player from the client side
-- @param reason: string - The reason for the ban
-- @param details: table (Optional) - Additional details about the ban
-- @param duration: number (Optional) - Ban duration in seconds, -1 for permanent ban
-- @return success: boolean - Wether the operation succeeded or not
exports["WaveShield"]:banPlayer(reason, details, duration)
exports["WaveShield"]:kickPlayer(reason, details, duration)
-- Ban a player from the server side
-- @param source: number | string - The player's server ID
-- @param reason: string - The reason for the ban
-- @param details?: table (Optional) - Additional details about the ban
-- @param duration?: number (Optional) - Ban duration in seconds, -1 for permanent ban
-- @return success: boolean - Wether the operation succeeded or not
exports["WaveShield"]:banPlayer(source, reason, details, duration)
exports["WaveShield"]:kickPlayer(source, reason, details, duration)
-- Unbans a previously banned player
-- @param banId: number | string - The unique ID of the ban to remove
-- @param reason?: string (Optional) - Reason for unbanning the player
-- @param from?: string (Optional) - Name/identifier of the staff member who performed the unban
-- @return success: boolean - Wether the operation succeeded or not
exports["WaveShield"]:unbanPlayer(banId, reason, from)
-- Unbans all currently banned players
-- @param from: string - Name/identifier of the staff member who performed the mass unban
-- @return success: boolean - Wether the operation succeeded or not
exports["WaveShield"]:unbanAllPlayers(from)
-- Check if a ban id exists and get its informations
-- @param banId: number | string - The unique ID of the ban to check
-- @return exists: boolean - Wether the ban exists or not
-- @return data?: {
-- playerName: string,
-- playTime: number,
-- lastJoin: Date,
-- firstJoin: Date,
-- banId: number,
-- reason: string,
-- details: table,
-- isPermanent: boolean,
-- evidenceUrl: string,
-- bannedBy: string,
-- bannedAt: Date,
-- expiresAt: Date,
-- identifiers: table
-- }
local exists, data = exports["WaveShield"]:getBanInfo(banId)
-- Client side
exports["WaveShield"]:screenshot(webhookUrl)
exports["WaveShield"]:captureLastSeconds(webhookUrl) -- (Video of the last 5 seconds)
-- Server side
exports["WaveShield"]:screenshot(source, webhookUrl)
exports["WaveShield"]:captureLastSeconds(source, webhookUrl) -- (Video of the last 5 seconds)
Last updated