Security
We split players in 4 groups:
Player (new players, regular players)
Trusted (e. g. high level, donator)
Staff (Staff)
Protected (e.g. Admins, Owners)
If a player is in a higher group then he is also in all lower groups. Example: A protected player is also in the staff, trusted and player group.
Functions
sWatch.isStaff
Player is considered staff if his usergroup was added ingame under Security
and Staff and admin usergroups
Arguments
(Player|SteamID32|SteamID64) Player - Player shall be online
Returns
(Boolean) isStaff
Example
print(sWatch.isStaff(normalUser)) // false
print(sWatch.isStaff(trustedUser)) // false
print(sWatch.isStaff(staffMember)) // true
print(sWatch.isStaff(protectedUser)) // true
sWatch.isProtected
Player is considered protected if he was whitelisted ingame under Security
.
Arguments
(Player|SteamID32|SteamID64) Player
Returns
(Boolean) isProtected
Example
print(sWatch.isProtected(normalUser)) // false
print(sWatch.isProtected(trustedUser)) // false
print(sWatch.isProtected(staffMember)) // false
print(sWatch.isProtected(protectedUser)) // true
sWatch.getHealthCheckResult
Returns a table with all passed and failed health checks. When called, all checks will get updated.
Returns
(Table) result
(Number) total_checks
(Number) total_impacted
(Number) max_score
(Number) max_severity
(Color) max_severity_color
(Table) passed
(String) id
(String) name
(String) desc
(String) long_desc
(Number) score
(String) severity
(Table) list
(Color) color
(Table) failed
(String) id
(String) name
(String) desc
(String) long_desc
(Number) scor
Hooks
Last updated