Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
/// station name (the name of the station in-game)
/datum/config_entry/string/stationname

/datum/config_entry/flag/delay_if_no_admins // APOC EDIT ADD - (delay if no admins)

/// Countdown between lobby and the round starting.
/datum/config_entry/number/lobby_countdown
default = 120
Expand Down
10 changes: 10 additions & 0 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,16 @@ SUBSYSTEM_DEF(ticker)
if(player.client?.holder)
++total_admins_ready

// APOC EDIT ADD START - (delay if no admins)
if(CONFIG_GET(flag/delay_if_no_admins))
if(timeLeft <= 600 && timeLeft > -1)
if(length(GLOB.admins) <= 0)
SetTimeLeft(-1)
start_immediately = FALSE
to_chat(world, span_infoplain("<b>The game start has been delayed due to no admins connected.</b>"), confidential = TRUE)
return
// APOC EDIT ADD END

if(start_immediately)
timeLeft = 0

Expand Down
5 changes: 5 additions & 0 deletions config/apoc_config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## NICE images for COOL discord users, seperated by commas i.e. BITE_IMG_LIST http://url/image.gif, http://url/image.png
#BITE_IMG_LIST

## Delay the round from starting if no admins are connected.
#DELAY_IF_NO_ADMINS
3 changes: 3 additions & 0 deletions config/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ $include map_vote.txt
## DARKPACK EDIT ADD START
$include darkpack_config.txt
## DARKPACK EDIT ADD END
## APOC EDIT ADD START
$include apoc_config.txt
## APOC EDIT ADD END

# You can use the @ character at the beginning of a config option to lock it from being edited in-game
# Example usage:
Expand Down
Loading