513 requirement, user-friendly byond version requirement handling (#15041)

* v1

* docs

* AA suggestion

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

* MINIMUM VERSION 513

* // => ///

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
Kyep
2020-12-03 09:25:22 +00:00
committed by GitHub
co-authored by AffectedArc07 Kyep
parent 76c3436f1e
commit f29d7c6e64
3 changed files with 18 additions and 7 deletions
+9 -1
View File
@@ -172,6 +172,9 @@
if(!tos_consent)
to_chat(usr, "<span class='warning'>You must consent to the terms of service before you can join!</span>")
return FALSE
if(client.version_blocked)
client.show_update_notice()
return FALSE
ready = !ready
new_player_panel_proc()
@@ -187,7 +190,9 @@
if(!tos_consent)
to_chat(usr, "<span class='warning'>You must consent to the terms of service before you can join!</span>")
return FALSE
if(client.version_blocked)
client.show_update_notice()
return FALSE
if(!SSticker || SSticker.current_state == GAME_STATE_STARTUP)
to_chat(usr, "<span class='warning'>You must wait for the server to finish starting before you can join!</span>")
return FALSE
@@ -230,6 +235,9 @@
if(!tos_consent)
to_chat(usr, "<span class='warning'>You must consent to the terms of service before you can join!</span>")
return FALSE
if(client.version_blocked)
client.show_update_notice()
return FALSE
if(!SSticker || SSticker.current_state != GAME_STATE_PLAYING)
to_chat(usr, "<span class='warning'>The round is either not ready, or has already finished...</span>")
return