Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a staff button to check for whitelisted players. #7062

Merged
merged 4 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
kiVts marked this conversation as resolved.
Show resolved Hide resolved
if(test_client.check_whitelist_status(GLOB.bitfields["whitelist_status"][flag]))
ckeys += test_client.ckey
to_chat(src, SPAN_NOTICE("Whitelist holders: [ckeys.Join(", ")]."))
realforest2001 marked this conversation as resolved.
Show resolved Hide resolved

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