mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Adds a world/Topic entry for announcing by server
This commit is contained in:
@@ -266,6 +266,13 @@ GLOBAL_VAR_INIT(world_topic_spam_protect_time, world.timeofday)
|
||||
update_status()
|
||||
return "Set listed status to invisible."
|
||||
|
||||
|
||||
else if("hostannounce" in input)
|
||||
if(!key_valid)
|
||||
return keySpamProtect(addr)
|
||||
|
||||
to_chat(world, "<hr><span style='color: #12A5F4'><b>Server Announcement:</b> [input["message"]]</span><hr>")
|
||||
|
||||
/proc/keySpamProtect(var/addr)
|
||||
if(GLOB.world_topic_spam_protect_ip == addr && abs(GLOB.world_topic_spam_protect_time - world.time) < 50)
|
||||
spawn(50)
|
||||
|
||||
Reference in New Issue
Block a user