Skip to content

Commit

Permalink
Disabled Factions
Browse files Browse the repository at this point in the history
Final part.
  • Loading branch information
Aurrain authored Apr 19, 2024
1 parent 90b0baa commit c6d99b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@
alert(src, get_job_unavailable_error_message(error, rank))
return FALSE

var/datum/job/job = SSjob.GetJob(rank)
if(job.faction && (job.faction in SSjob.disabled_factions))
alert(src, "An administrator has disabled spawning as the [job.faction] faction!")
return FALSE

if(SSticker.late_join_disabled)
alert(src, "An administrator has disabled late join spawning.")
return FALSE
Expand Down

0 comments on commit c6d99b6

Please sign in to comment.