- Documentation
- Server functions
- isBanned
Function
isBanned
Checks whether a connection with this serial or IP address would be rejected by bans.
Syntax
bool isBanned(string serial [, string ip = nil])Arguments
serialstring- The player's Client ID (may be
nilif you pass an IP). ipstring, optional = nil- IP address.
Returns
true if a matching ban exists.
Example
if isBanned("TH-01D0-0000-0000-0000-0001") then
print("Ten Client ID ma bana")
end