mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 00:27:31 +01:00
Add config entry to hide the station name in the hub entry (#63735)
This commit is contained in:
@@ -561,3 +561,6 @@
|
||||
|
||||
/datum/config_entry/flag/cache_assets
|
||||
default = TRUE
|
||||
|
||||
/datum/config_entry/flag/station_name_in_hub_entry
|
||||
default = FALSE
|
||||
|
||||
+4
-2
@@ -287,13 +287,15 @@ GLOBAL_VAR(restart_counter)
|
||||
if(config)
|
||||
var/server_name = CONFIG_GET(string/servername)
|
||||
if (server_name)
|
||||
s += "<b>[server_name]</b> — "
|
||||
s += "<b>[server_name]</b> "
|
||||
features += "[CONFIG_GET(flag/norespawn) ? "no " : ""]respawn"
|
||||
if(CONFIG_GET(flag/allow_ai))
|
||||
features += "AI allowed"
|
||||
hostedby = CONFIG_GET(string/hostedby)
|
||||
|
||||
s += "<b>[station_name()]</b>";
|
||||
if (CONFIG_GET(flag/station_name_in_hub_entry))
|
||||
s += " — <b>[station_name()]</b>"
|
||||
|
||||
s += " ("
|
||||
s += "<a href=\"http://\">" //Change this to wherever you want the hub to link to.
|
||||
s += "Default" //Replace this with something else. Or ever better, delete it and uncomment the game version.
|
||||
|
||||
@@ -590,3 +590,8 @@ MOTD motd.txt
|
||||
## This should be disabled (through `CACHE_ASSETS 0`) on development,
|
||||
## but enabled on production (the default).
|
||||
CACHE_ASSETS 0
|
||||
|
||||
## Uncomment to allow the station name to be in the hub entry.
|
||||
## You should only enable this if you can guarantee a station name doesn't break BYOND's TOS.
|
||||
## BYOND staff have gotten upset at us in the past for inappropriate station names.
|
||||
#STATION_NAME_IN_HUB_ENTRY
|
||||
|
||||
Reference in New Issue
Block a user