Adds Staff-say (#28813)

* staff say

* finally, staffsays

* oops

* deconflict

* yea

* bonk

* build
This commit is contained in:
Contrabang
2025-05-13 13:00:15 -04:00
committed by GitHub
parent dfacf83e18
commit 43439da811
21 changed files with 147 additions and 28 deletions
@@ -0,0 +1,11 @@
// Relays messages to staff
/datum/redis_callback/staff_in
channel = "byond.staffsay"
/datum/redis_callback/staff_in/on_message(message)
var/list/data = json_decode(message)
if(data["source"] == GLOB.configuration.system.instance_id) // Ignore self messages
return
for(var/client/C in GLOB.admins)
if(check_rights(null, FALSE, C.mob))
to_chat(C, "<span class='staff_channel'>STAFF: <small>[data["author"]]@[data["source"]]</small>: [html_encode(data["message"])]</span>")