Skip to content

Commit

Permalink
yay
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Aug 29, 2024
1 parent 9aa0147 commit 727b58f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ GLOBAL_LIST_INIT(admin_verbs_minor_event, list(
/client/proc/toggle_hardcore_perma,
/client/proc/toggle_bypass_joe_restriction,
/client/proc/toggle_joe_respawns,
/datum/admins/proc/open_shuttlepanel
/datum/admins/proc/open_shuttlepanel,
/client/proc/get_whitelisted_clients,
))

GLOBAL_LIST_INIT(admin_verbs_major_event, list(
Expand Down
12 changes: 12 additions & 0 deletions code/modules/admin/tabs/event_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@

CEI.handle_event_info_update(faction)

/client/proc/get_whitelisted_clients()
set name = "Find Whitelisted Players"
set category = "Admin.Events"

var/flag = tgui_input_list(src, "Which flag?", "Whitelist Flags", GLOB.bitfields["whitelist_status"])

var/list/ckeys = list()
for(var/client/test_client in GLOB.clients)
if(test_client.check_whitelist_status(GLOB.bitfields["whitelist_status"][flag]))
ckeys += test_client.ckey
to_chat(src, SPAN_NOTICE("Whitelist holders: [ckeys.Join(", ")]."))

/client/proc/change_security_level()
if(!check_rights(R_ADMIN))
return
Expand Down

0 comments on commit 727b58f

Please sign in to comment.