mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 06:00:23 +01:00
[MAJOR CHANGE] Admin rank datum (#17133)
* Admin ranks update * Permissions fix * One missing thing * Further rework to make database also fully work * Adds admin rank bitflag calculator to tools * ZA WARUDO --------- Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// Returns if the given client is an admin, REGARDLESS of if they're deadminned or not.
|
||||
///proc/is_admin(client/client)
|
||||
// return !isnull(GLOB.admin_datums[client.ckey]) || !isnull(GLOB.deadmins[client.ckey])
|
||||
|
||||
/// Sends a message in the event that someone attempts to elevate their permissions through invoking a certain proc.
|
||||
/proc/alert_to_permissions_elevation_attempt(mob/user)
|
||||
var/message = " has tried to elevate permissions!"
|
||||
message_admins(key_name_admin(user) + message)
|
||||
log_admin(key_name(user) + message)
|
||||
Reference in New Issue
Block a user