Ban
in seconds, 0 for permanent ban
BanSteamID64
in seconds, 0 for permanent ban
CanTarget
Checks if the player can target another player.
CanTargetRole
Checks if the player can target a specific role.
Chat.Add
Adds a message to the local chat, prefixed with the client's configured chat prefix.
Chat.Send
Sends a formatted chat message to a player, a table of players, "*" for everyone,
Cloak
Cloaks or uncloaks a player, making them invisible.
FetchByRole
Fetches all players that have a specific role.
FetchRoles
Fetches the roles of the player using their SteamID64.
GetAllWithPermission
Returns all players that have a specific permission.
GetAuthedBySteamID
Like player.GetBySteamID, but only returns the player if Lyn has authenticated them.
GetAuthedBySteamID64
Like player.GetBySteamID64, but only returns the player if Lyn has authenticated them.
GetBanInfo
Fetches the active ban for a SteamID64. Results are cached for up to 60 seconds.
GetExclusive
Returns the formatted exclusive error for a target, if they're busy.
GetPData
Gets persistent data for a player.
GetPDataSteamID64
Fetches persistent data for a SteamID64 from the database.
GetPlayTime
Returns the player's total playtime including the current session.
GetSessionTime
Returns how long the player has been on the server this session.
GetSharedVar
Retrieves a shared variable on a player.
GetVar
Retrieves a variable on the player in the current state.
HasPermission
Checks if the player has a specific permission.
IsAuthed
Checks if the player has been authenticated by Lyn.
IsNetReady
Checks if the player is ready to receive netmessages.
IsSteamAuthed
Checks if the player is Steam authenticated.
KickSteamID64
Kicks a player by SteamID64. The reason is truncated to 400 characters.
PlaySound
Plays a sound for a specific player.
Role.Add
Adds the specified role to the player for an optional duration (in seconds).
Role.AddSteamID64
Adds the specified role to the player for an optional duration (in seconds) using their SteamID64.
Role.ExtendExpiry
Adds time to an existing temporary role instead of overwriting it.
Role.ExtendExpirySteamID64
Same as Lyn.Player.Role.ExtendExpiry,
Role.Get
Returns the highest role the specified player has.
Role.GetAll
Returns a copy of all roles the specified player has.
Role.GetColor
Returns the color of the highest role the specified player has.
Role.GetDisplay
Returns the display name of the highest role the specified player has.
Role.GetImmunity
Returns the immunity level of the highest role the specified player has.
Role.GetRoleExpiry
Returns the timestamp at which a player's role expires.
Role.Has
Returns whether the specified player has the given role(s). Supports string, array-style, and dictionary-style table inputs.
Role.HasDeep
Returns whether the specified player has the given role or any roles that
Role.Iter
Returns an iterator for all roles the specified player has.
Role.Remove
Removes a role from a player.
Role.RemoveSteamID64
Removes a role from a player using their SteamID64. Works on offline players.
SearchByName
Searches for players by name (case-insensitive, partial match).
SendExclusiveMessage
Sends the exclusive error to the caller if the target is busy.
SetExclusive
Marks a player as "busy" with a reason, so other commands can refuse to act on them.
SetPData
Sets persistent data for a player.
SetPDataSteamID64
Sets persistent data for a SteamID64. Works on offline players.
SetSharedVar
Sets a variable to be shared across all players.
SetVar
Sets a variable on the player in the current state.
Unban
Lifts the active ban on a SteamID64.