Skip to main content
Server Proxied to ug-core. The primary identifier type comes from primaryIdentifier in config/identity.lua. It defaults to license. Players without it cannot connect, and players with an active ban are refused with a generic message.

GetIdentifiers

string[]
Every identifier, such as license:abc and discord:123.
Works for connected and connecting players.

GetPrimary

The identifier of the primary type, such as license:abc.

IsBanned

MUST run in a thread.
integer | string | string[]
required
A source, an identifier, or a list of identifiers.
UgBan?
The active ban that lasts longest.

Ban

MUST run in a thread. Bans every identifier of the target, except ip:. When the player already dropped, pass identifiers instead of a source.
string
Up to 255 characters. Stored in ug_bans and server logs, never shown to the player.
integer
Seconds. Permanent when nil.
string
Who banned. Up to 64 characters.
boolean
default:"true"
Drops an online target.

Unban

MUST run in a thread. Lifts every active ban covering the target. count is the number of lifted bans.

Errors

Invalid options and malformed targets raise.

Example