mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 17:13:46 +01:00
Add Z-Level Manager, a basic admin tool. (#30397)
* Add Z-Level Manager, a basic admin tool. * build bundle, use ui_module/admin * fix type restriction * remove unnecessary params
This commit is contained in:
committed by
GitHub
parent
7e4f0a0b0f
commit
82663d1c10
@@ -72,7 +72,8 @@ GLOBAL_LIST_INIT(admin_verbs_admin, list(
|
||||
/client/proc/ping_all_admins,
|
||||
/client/proc/show_watchlist,
|
||||
/client/proc/debugstatpanel,
|
||||
/client/proc/create_rnd_restore_disk
|
||||
/client/proc/create_rnd_restore_disk,
|
||||
/client/proc/open_admin_zlevel_manager,
|
||||
))
|
||||
GLOBAL_LIST_INIT(admin_verbs_ban, list(
|
||||
/client/proc/ban_panel,
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/client/proc/open_admin_zlevel_manager()
|
||||
set name = "Z-Level Manager"
|
||||
set desc = "Opens the Z-Level Manager UI"
|
||||
set category = "Admin"
|
||||
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
|
||||
if(!SSmapping || !SSmapping.initialized)
|
||||
to_chat(usr, "<span class='notice'>SSmapping has not initialized yet, Z-Level Manager is not available yet.</span>")
|
||||
return
|
||||
|
||||
message_admins("[key_name_admin(usr)] is using the Z-Level Manager")
|
||||
var/datum/ui_module/admin/z_level_manager/ZLM = get_admin_ui_module(/datum/ui_module/admin/z_level_manager)
|
||||
ZLM.ui_interact(usr)
|
||||
Reference in New Issue
Block a user