Check whether a named player is currently banned or muted.
| Name | Type | Description |
|---|---|---|
name | string | Player name. |
Both functions return false when there is no active ban or mute, or true, secondsRemaining when one is active. The remaining duration is in seconds. A permanent ban returns true, 0.
local banned, seconds = server.isBanned("Alex")
if banned then
log("Alex is banned; seconds remaining:", seconds)
end
local muted, muteSeconds = server.isMuted("Alex")