Skip to main content
Server Required module. Proxied to ug-core. The primary identifier type comes from primaryIdentifier in config/identity.lua. It defaults to license.

GetIdentifiers

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

GetPrimary

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.
UgErrorCode?
internal_error when the database failed.

Ban

MUST run in a thread. Bans every identifier of the target. When the player already dropped, pass identifiers instead of a source.
string
Up to 255 characters. Stored in ug_bans and server logs.
integer
Seconds. Permanent when nil.
string
Who banned. Up to 64 characters.
boolean
default:"true"
Drops an online target.
Banned players are refused while connecting with a generic message.

Unban

MUST run in a thread. Lifts every active ban covering the target.

Example