mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
Merge pull request #659 from VOREStation/disallow-empty-ooc-notes
Force having OOC notes set to spawn
This commit is contained in:
@@ -305,6 +305,7 @@
|
||||
if(!IsJobAvailable(rank))
|
||||
src << alert("[rank] is not available. Please try another.")
|
||||
return 0
|
||||
if (!attempt_vr(src,"spawn_checks_vr",list())) return 0 // VOREStation Insert
|
||||
|
||||
spawning = 1
|
||||
close_spawn_windows()
|
||||
@@ -396,6 +397,7 @@
|
||||
|
||||
|
||||
/mob/new_player/proc/create_character()
|
||||
if (!attempt_vr(src,"spawn_checks_vr",list())) return 0 // VOREStation Insert
|
||||
spawning = 1
|
||||
close_spawn_windows()
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/mob/new_player/proc/spawn_checks_vr()
|
||||
var/pass = 1
|
||||
if (config.allow_Metadata && client && client.prefs && (isnull(client.prefs.metadata) || length(client.prefs.metadata) < 5))
|
||||
src << "<span class='warning'>You must first set your OOC notes before spawning in!</span>"
|
||||
pass = 0
|
||||
if (!pass)
|
||||
alert(src,"There were problems with spawning your character. Check your message log for details.","Error","OK")
|
||||
return pass
|
||||
Reference in New Issue
Block a user