okay
This commit is contained in:
@@ -214,16 +214,16 @@
|
||||
|
||||
/datum/world_topic/jsonstatus/Run(list/input, addr)
|
||||
. = list()
|
||||
.["Gamemode"] = GLOB.master_mode
|
||||
.["Round ID"] = GLOB.round_id
|
||||
.["Players"] = GLOB.clients.len
|
||||
.["mode"] = GLOB.master_mode
|
||||
.["round_id"] = GLOB.round_id
|
||||
.["players"] = GLOB.clients.len
|
||||
var/list/adm = get_admin_counts()
|
||||
var/list/presentmins = adm["present"]
|
||||
var/list/afkmins = adm["afk"]
|
||||
.["Admins"] = presentmins.len + afkmins.len //equivalent to the info gotten from adminwho
|
||||
.["Security Level"] = "[NUM2SECLEVEL(GLOB.security_level)]"
|
||||
.["Round Duration"] = WORLDTIME2TEXT("hh:mm:ss")
|
||||
.["Time Dilation (Avg)"] = SStime_track.time_dilation_avg
|
||||
.["admins"] = presentmins.len + afkmins.len //equivalent to the info gotten from adminwho
|
||||
.["security_level"] = "[NUM2SECLEVEL(GLOB.security_level)]"
|
||||
.["round_duration"] = WORLDTIME2TEXT("hh:mm:ss")
|
||||
.["map"] = SSmapping.config.map_name
|
||||
return json_encode(.)
|
||||
|
||||
/datum/world_topic/jsonplayers
|
||||
@@ -285,10 +285,11 @@
|
||||
/datum/world_topic/jsonrevision/Run(list/input, addr)
|
||||
. = list()
|
||||
var/datum/getrev/revdata = GLOB.revdata
|
||||
.["branch"] = "master"
|
||||
.["data"] = revdata.date
|
||||
.["dd_version"] = world.byond_build
|
||||
.["dd_build"] = world.byond_version
|
||||
.["dm_version"] = DM_BUILD
|
||||
.["dm_build"] = DM_VERSION
|
||||
.["gameid"] = GLOB.round_id
|
||||
.["revision"] = revdata.commit
|
||||
return json_encode(.)
|
||||
|
||||
Reference in New Issue
Block a user