mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-19 04:05:56 +01:00
adds hub visibility toggling and config option
This commit is contained in:
@@ -1652,3 +1652,16 @@ var/global/floorIsLava = 0
|
||||
qdel(P)
|
||||
faxreply = null
|
||||
return
|
||||
|
||||
|
||||
/datum/admins/proc/toggle_hub_visibility()
|
||||
set category = "Server"
|
||||
set desc = "Globally Toggles Hub Visibility"
|
||||
set name = "Toggle Hub Visibility"
|
||||
if(!check_rights(R_ADMIN))
|
||||
return
|
||||
world.update_hub_visibility()
|
||||
var/long_message = "Updated hub visibility. The server is now [config.hub_visible ? "visible" : "invisible"]."
|
||||
if (config.hub_visible && !world.reachable)
|
||||
message_admins("WARNING: The server will not show up on the hub because byond is detecting that a firewall is blocking incoming connections.")
|
||||
log_and_message_admins(long_message)
|
||||
|
||||
@@ -109,7 +109,8 @@ var/global/list/admin_verbs_admin = list(
|
||||
/datum/admins/proc/view_feedback,
|
||||
/client/proc/debug_global_variables,
|
||||
/client/proc/admin_add_whitelist,
|
||||
/client/proc/admin_del_whitelist
|
||||
/client/proc/admin_del_whitelist,
|
||||
/datum/admins/proc/toggle_hub_visibility
|
||||
)
|
||||
|
||||
var/global/list/admin_verbs_ban = list(
|
||||
|
||||
Reference in New Issue
Block a user