mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 09:14:17 +00:00
Merge pull request #4507 from Tastyfish/admin-topic
Adds admin names to world status topic
This commit is contained in:
@@ -115,6 +115,7 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
|
||||
else if ("status" in input)
|
||||
var/list/s = list()
|
||||
var/list/admins = list()
|
||||
s["version"] = game_version
|
||||
s["mode"] = master_mode
|
||||
s["respawn"] = config ? abandon_allowed : 0
|
||||
@@ -132,6 +133,7 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
if(C.holder.fakekey)
|
||||
continue //so stealthmins aren't revealed by the hub
|
||||
admin_count++
|
||||
admins += list(list(C.key, C.holder.rank))
|
||||
s["player[player_count]"] = C.key
|
||||
player_count++
|
||||
s["players"] = player_count
|
||||
@@ -150,6 +152,11 @@ var/world_topic_spam_protect_time = world.timeofday
|
||||
// Shuttle timer, in seconds
|
||||
s["shuttle_timer"] = shuttle_master.emergency.timeLeft()
|
||||
|
||||
for(var/i in 1 to admins.len)
|
||||
var/list/A = admins[i]
|
||||
s["admin[i - 1]"] = A[1]
|
||||
s["adminrank[i - 1]"] = A[2]
|
||||
|
||||
return list2params(s)
|
||||
|
||||
else if("adminmsg" in input)
|
||||
|
||||
Reference in New Issue
Block a user