mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Regions (#21555)
This commit is contained in:
@@ -77,9 +77,12 @@
|
||||
if(GLOB.join_tos)
|
||||
output += "<p><a href='byond://?src=[UID()];tos=1'>Terms of Service</A></p>"
|
||||
|
||||
if(length(GLOB.configuration.system.region_map))
|
||||
output += "<p><a href='byond://?src=[UID()];setregion=1'>Set region (reduces ping)</A></p>"
|
||||
|
||||
output += "</center>"
|
||||
|
||||
var/datum/browser/popup = new(src, "playersetup", "<div align='center'>New Player Options</div>", 240, 330)
|
||||
var/datum/browser/popup = new(src, "playersetup", "<div align='center'>New Player Options</div>", 240, 340)
|
||||
popup.set_window_options("can_close=0")
|
||||
popup.set_content(output)
|
||||
popup.open(0)
|
||||
@@ -215,6 +218,10 @@
|
||||
privacy_consent()
|
||||
return FALSE
|
||||
|
||||
if(href_list["setregion"])
|
||||
usr.client.change_region()
|
||||
return FALSE
|
||||
|
||||
if(href_list["late_join"])
|
||||
if(!client.tos_consent)
|
||||
to_chat(usr, "<span class='warning'>You must consent to the terms of service before you can join!</span>")
|
||||
|
||||
Reference in New Issue
Block a user