ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isBanned

Function

isBanned

ServerAdministration and bansTrilogy Hub only

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 nil if 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