mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Adds Staff-say (#28813)
* staff say * finally, staffsays * oops * deconflict * yea * bonk * build
This commit is contained in:
@@ -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>")
|
||||
Reference in New Issue
Block a user