Enforce player spawning

Hello. I’ve been looking for a while and can’t find anything that would allow me to enforce whether or not the player can spawn. I figured it would be something like a gamemode function that I could override.

Something along these lines…

function GM:PlayerCanSpawn(ply)
return true


Hmm, nevermind. I am an idiot. Please beat me with a heavy blunt object.