mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 23:54:24 +01:00
Server maint subsystem (#16518)
* upports server maint subsystem * fix runtime in admin z narrate * . * sorts them verbs * . * . * Update code/controllers/subsystems/statpanel.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> * Update code/controllers/subsystems/server_maint.dm Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
+45
-46
@@ -32,7 +32,7 @@ var/global/floorIsLava = 0
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////Panels
|
||||
|
||||
/datum/admins/proc/show_player_panel(var/mob/M in mob_list)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Game"
|
||||
set name = "Show Player Panel"
|
||||
set desc="Edit player (respawn, ban, heal, etc)"
|
||||
|
||||
@@ -224,7 +224,7 @@ var/global/floorIsLava = 0
|
||||
/datum/player_info/var/timestamp // Because this is bloody annoying
|
||||
|
||||
/datum/admins/proc/PlayerNotes()
|
||||
set category = "Admin"
|
||||
set category = "Admin.Logs"
|
||||
set name = "Player Notes"
|
||||
if (!istype(src,/datum/admins))
|
||||
src = usr.client.holder
|
||||
@@ -264,7 +264,7 @@ var/global/floorIsLava = 0
|
||||
|
||||
|
||||
/datum/admins/proc/show_player_info(var/key as text)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Investigate"
|
||||
set name = "Show Player Info"
|
||||
if (!istype(src,/datum/admins))
|
||||
src = usr.client.holder
|
||||
@@ -278,7 +278,7 @@ var/global/floorIsLava = 0
|
||||
|
||||
|
||||
/datum/admins/proc/access_news_network() //MARKER
|
||||
set category = "Fun"
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Access Newscaster Network"
|
||||
set desc = "Allows you to view, add and edit news feeds."
|
||||
|
||||
@@ -594,7 +594,7 @@ var/global/floorIsLava = 0
|
||||
|
||||
|
||||
/datum/admins/proc/restart()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set name = "Restart"
|
||||
set desc="Restarts the world"
|
||||
if (!usr.client.holder)
|
||||
@@ -617,7 +617,7 @@ var/global/floorIsLava = 0
|
||||
|
||||
|
||||
/datum/admins/proc/announce()
|
||||
set category = "Special Verbs"
|
||||
set category = "Admin.Chat"
|
||||
set name = "Announce"
|
||||
set desc="Announce your desires to the world"
|
||||
if(!check_rights(0)) return
|
||||
@@ -635,7 +635,7 @@ var/global/floorIsLava = 0
|
||||
var/datum/announcement/priority/admin_pri_announcer = new
|
||||
var/datum/announcement/minor/admin_min_announcer = new
|
||||
/datum/admins/proc/intercom()
|
||||
set category = "Fun"
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Intercom Msg"
|
||||
set desc = "Send an intercom message, like an arrivals announcement."
|
||||
if(!check_rights(0)) return
|
||||
@@ -663,7 +663,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","IN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/intercom_convo()
|
||||
set category = "Fun"
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Intercom Convo"
|
||||
set desc = "Send an intercom conversation, like several uses of the Intercom Msg verb."
|
||||
set waitfor = FALSE //Why bother? We have some sleeps. You can leave tho!
|
||||
@@ -750,7 +750,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
sleep(this_wait SECONDS)
|
||||
|
||||
/datum/admins/proc/toggleooc()
|
||||
set category = "Server"
|
||||
set category = "Server.Chat"
|
||||
set desc="Globally Toggles OOC"
|
||||
set name="Toggle Player OOC"
|
||||
|
||||
@@ -766,7 +766,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/togglelooc()
|
||||
set category = "Server"
|
||||
set category = "Server.Chat"
|
||||
set desc="Globally Toggles LOOC"
|
||||
set name="Toggle Player LOOC"
|
||||
|
||||
@@ -783,7 +783,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
|
||||
/datum/admins/proc/toggledsay()
|
||||
set category = "Server"
|
||||
set category = "Server.Chat"
|
||||
set desc="Globally Toggles DSAY"
|
||||
set name="Toggle DSAY"
|
||||
|
||||
@@ -800,7 +800,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TDSAY") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc
|
||||
|
||||
/datum/admins/proc/toggleoocdead()
|
||||
set category = "Server"
|
||||
set category = "Server.Chat"
|
||||
set desc="Toggle Dead OOC."
|
||||
set name="Toggle Dead OOC"
|
||||
|
||||
@@ -813,7 +813,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TDOOC") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/togglehubvisibility()
|
||||
set category = "Server"
|
||||
set category = "Server.Config"
|
||||
set desc="Globally Toggles Hub Visibility"
|
||||
set name="Toggle Hub Visibility"
|
||||
|
||||
@@ -826,7 +826,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","THUB") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc
|
||||
|
||||
/datum/admins/proc/toggletraitorscaling()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle traitor scaling"
|
||||
set name="Toggle Traitor Scaling"
|
||||
CONFIG_SET(flag/traitor_scaling, !CONFIG_GET(flag/traitor_scaling))
|
||||
@@ -835,7 +835,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TTS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/startnow()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Start the round ASAP"
|
||||
set name="Start Now"
|
||||
|
||||
@@ -858,7 +858,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
log_and_message_admins("cancelled immediate game start.")
|
||||
|
||||
/datum/admins/proc/toggleenter()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="People can't enter"
|
||||
set name="Toggle Entering"
|
||||
CONFIG_SET(flag/enter_allowed, !CONFIG_GET(flag/enter_allowed))
|
||||
@@ -872,7 +872,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TE") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggleAI()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="People can't be AI"
|
||||
set name="Toggle AI"
|
||||
CONFIG_SET(flag/allow_ai, !CONFIG_GET(flag/allow_ai))
|
||||
@@ -885,7 +885,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TAI") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggleaban()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Respawn basically"
|
||||
set name="Toggle Respawn"
|
||||
CONFIG_SET(flag/abandon_allowed, !CONFIG_GET(flag/abandon_allowed))
|
||||
@@ -899,7 +899,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/togglepersistence()
|
||||
set category = "Server"
|
||||
set category = "Server.Config"
|
||||
set desc="Whether persistent data will be saved from now on."
|
||||
set name="Toggle Persistent Data"
|
||||
CONFIG_SET(flag/persistence_disabled, !CONFIG_GET(flag/persistence_disabled))
|
||||
@@ -913,7 +913,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TPD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/togglemaploadpersistence()
|
||||
set category = "Server"
|
||||
set category = "Server.Config"
|
||||
set desc="Whether mapload persistent data will be saved from now on."
|
||||
set name="Toggle Mapload Persistent Data"
|
||||
CONFIG_SET(flag/persistence_ignore_mapload, !CONFIG_GET(flag/persistence_ignore_mapload))
|
||||
@@ -927,7 +927,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TMPD") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggle_aliens()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle alien mobs"
|
||||
set name="Toggle Aliens"
|
||||
CONFIG_SET(flag/aliens_allowed, !CONFIG_GET(flag/aliens_allowed))
|
||||
@@ -936,7 +936,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TA") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggle_space_ninja()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle space ninjas spawning."
|
||||
set name="Toggle Space Ninjas"
|
||||
CONFIG_SET(flag/ninjas_allowed, !CONFIG_GET(flag/ninjas_allowed))
|
||||
@@ -945,7 +945,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TSN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/delay()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Delay the game start/end"
|
||||
set name="Delay"
|
||||
|
||||
@@ -965,7 +965,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","DELAY") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/adjump()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle admin jumping"
|
||||
set name="Toggle Jump"
|
||||
CONFIG_SET(flag/allow_admin_jump, !CONFIG_GET(flag/allow_admin_jump))
|
||||
@@ -973,7 +973,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TJ") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/adspawn()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle admin spawning"
|
||||
set name="Toggle Spawn"
|
||||
CONFIG_SET(flag/allow_admin_spawning, !CONFIG_GET(flag/allow_admin_spawning))
|
||||
@@ -981,7 +981,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TAS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/adrev()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Toggle admin revives"
|
||||
set name="Toggle Revive"
|
||||
CONFIG_SET(flag/allow_admin_rev, !CONFIG_GET(flag/allow_admin_rev))
|
||||
@@ -989,7 +989,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TAR") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/immreboot()
|
||||
set category = "Server"
|
||||
set category = "Server.Game"
|
||||
set desc="Reboots the server post haste"
|
||||
set name="Immediate Reboot"
|
||||
if(!usr.client.holder) return
|
||||
@@ -1007,7 +1007,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
world.Reboot()
|
||||
|
||||
/datum/admins/proc/unprison(var/mob/M in mob_list)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Moderation"
|
||||
set name = "Unprison"
|
||||
if (M.z == 2)
|
||||
if (CONFIG_GET(flag/allow_admin_jump))
|
||||
@@ -1048,7 +1048,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
return 0
|
||||
|
||||
/datum/admins/proc/spawn_fruit(seedtype in SSplants.seeds)
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set desc = "Spawn the product of a seed."
|
||||
set name = "Spawn Fruit"
|
||||
|
||||
@@ -1063,7 +1063,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
log_admin("[key_name(usr)] spawned [seedtype] fruit at ([usr.x],[usr.y],[usr.z])")
|
||||
|
||||
/datum/admins/proc/spawn_custom_item()
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set desc = "Spawn a custom item."
|
||||
set name = "Spawn Custom Item"
|
||||
|
||||
@@ -1081,8 +1081,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
item_to_spawn.spawn_item(get_turf(usr))
|
||||
|
||||
/datum/admins/proc/check_custom_items()
|
||||
|
||||
set category = "Debug"
|
||||
set category = "Debug.Investigate"
|
||||
set desc = "Check the custom item list."
|
||||
set name = "Check Custom Items"
|
||||
|
||||
@@ -1103,7 +1102,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
to_chat(usr, "- name: [item.name] icon: [item.item_icon] path: [item.item_path] desc: [item.item_desc]")
|
||||
|
||||
/datum/admins/proc/spawn_plant(seedtype in SSplants.seeds)
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set desc = "Spawn a spreading plant effect."
|
||||
set name = "Spawn Plant"
|
||||
|
||||
@@ -1116,7 +1115,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
/datum/admins/proc/spawn_atom(var/object as text)
|
||||
set name = "Spawn"
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set desc = "(atom path) Spawn an atom"
|
||||
|
||||
if(!check_rights(R_SPAWN)) return
|
||||
@@ -1150,7 +1149,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
|
||||
/datum/admins/proc/show_traitor_panel(var/mob/M in mob_list)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Events"
|
||||
set desc = "Edit mobs's memory and role"
|
||||
set name = "Show Traitor Panel"
|
||||
|
||||
@@ -1165,7 +1164,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","STP") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/show_game_mode()
|
||||
set category = "Admin"
|
||||
set category = "Admin.Game"
|
||||
set desc = "Show the current round configuration."
|
||||
set name = "Show Game Mode"
|
||||
|
||||
@@ -1239,7 +1238,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
|
||||
/datum/admins/proc/toggletintedweldhelmets()
|
||||
set category = "Debug"
|
||||
set category = "Server.Config"
|
||||
set desc="Reduces view range when wearing welding helmets"
|
||||
set name="Toggle tinted welding helmets."
|
||||
CONFIG_SET(flag/welder_vision, !CONFIG_GET(flag/welder_vision))
|
||||
@@ -1252,7 +1251,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
feedback_add_details("admin_verb","TTWH") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
|
||||
/datum/admins/proc/toggleguests()
|
||||
set category = "Server"
|
||||
set category = "Server.Config"
|
||||
set desc="Guests can't enter"
|
||||
set name="Toggle guests"
|
||||
CONFIG_SET(flag/guests_allowed, !CONFIG_GET(flag/guests_allowed))
|
||||
@@ -1286,7 +1285,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
to_chat(usr, span_bold("No AIs located")) //Just so you know the thing is actually working and not just ignoring you.
|
||||
|
||||
/datum/admins/proc/show_skills()
|
||||
set category = "Admin"
|
||||
set category = "Admin.Investigate"
|
||||
set name = "Show Skills"
|
||||
|
||||
if (!istype(src,/datum/admins))
|
||||
@@ -1303,7 +1302,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
return
|
||||
|
||||
/client/proc/update_mob_sprite(mob/living/carbon/human/H as mob)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Game"
|
||||
set name = "Update Mob Sprite"
|
||||
set desc = "Should fix any mob sprite update errors."
|
||||
|
||||
@@ -1402,7 +1401,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
return 1
|
||||
|
||||
/datum/admins/proc/force_antag_latespawn()
|
||||
set category = "Admin"
|
||||
set category = "Admin.Events"
|
||||
set name = "Force Template Spawn"
|
||||
set desc = "Force an antagonist template to spawn."
|
||||
|
||||
@@ -1426,7 +1425,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
antag.attempt_late_spawn()
|
||||
|
||||
/datum/admins/proc/force_mode_latespawn()
|
||||
set category = "Admin"
|
||||
set category = "Admin.Events"
|
||||
set name = "Force Mode Spawn"
|
||||
set desc = "Force autotraitor to proc."
|
||||
|
||||
@@ -1444,7 +1443,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
ticker.mode.try_latespawn()
|
||||
|
||||
/datum/admins/proc/paralyze_mob(mob/living/H as mob)
|
||||
set category = "Admin"
|
||||
set category = "Admin.Events"
|
||||
set name = "Toggle Paralyze"
|
||||
set desc = "Paralyzes a player. Or unparalyses them."
|
||||
|
||||
@@ -1462,7 +1461,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
log_and_message_admins(msg)
|
||||
|
||||
/datum/admins/proc/set_tcrystals(mob/living/carbon/human/H as mob)
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set name = "Set Telecrystals"
|
||||
set desc = "Allows admins to change telecrystals of a user."
|
||||
set popup_menu = FALSE //VOREStation Edit - Declutter.
|
||||
@@ -1478,7 +1477,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
to_chat(usr, "You do not have access to this command.")
|
||||
|
||||
/datum/admins/proc/add_tcrystals(mob/living/carbon/human/H as mob)
|
||||
set category = "Debug"
|
||||
set category = "Debug.Game"
|
||||
set name = "Add Telecrystals"
|
||||
set desc = "Allows admins to change telecrystals of a user by addition."
|
||||
set popup_menu = FALSE //VOREStation Edit - Declutter.
|
||||
@@ -1495,7 +1494,7 @@ var/datum/announcement/minor/admin_min_announcer = new
|
||||
|
||||
|
||||
/datum/admins/proc/sendFax()
|
||||
set category = "Special Verbs"
|
||||
set category = "Fun.Event Kit"
|
||||
set name = "Send Fax"
|
||||
set desc = "Sends a fax to this machine"
|
||||
var/department = tgui_input_list(usr, "Choose a fax", "Fax", alldepartments)
|
||||
|
||||
Reference in New Issue
Block a user