mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
This implements UDP Logging with GELF. It will allow full text search over all the logs and attributes sent over GELF to the log server.
41 lines
1.5 KiB
Plaintext
41 lines
1.5 KiB
Plaintext
// verb for admins to set custom event
|
|
/client/proc/cmd_admin_change_custom_event()
|
|
set category = "Fun"
|
|
set name = "Change Custom Event"
|
|
|
|
if(!holder)
|
|
src << "Only administrators may use this command."
|
|
return
|
|
|
|
var/input = sanitize(input(usr, "Enter the description of the custom event. Be descriptive. To cancel the event, make this blank or hit cancel.", "Custom Event", custom_event_msg) as message|null, MAX_BOOK_MESSAGE_LEN, extra = 0)
|
|
if(!input || input == "")
|
|
custom_event_msg = null
|
|
log_admin("[usr.key] has cleared the custom event text.",admin_key=key_name(usr))
|
|
message_admins("[key_name_admin(usr)] has cleared the custom event text.")
|
|
return
|
|
|
|
log_admin("[usr.key] has changed the custom event text.",admin_key=key_name(usr))
|
|
message_admins("[key_name_admin(usr)] has changed the custom event text.")
|
|
|
|
custom_event_msg = input
|
|
|
|
world << "<h1 class='alert'>Custom Event</h1>"
|
|
world << "<h2 class='alert'>A custom event is starting. OOC Info:</h2>"
|
|
world << "<span class='alert'>[custom_event_msg]</span>"
|
|
world << "<br>"
|
|
|
|
// normal verb for players to view info
|
|
/client/verb/cmd_view_custom_event()
|
|
set category = "OOC"
|
|
set name = "Custom Event Info"
|
|
|
|
if(!custom_event_msg || custom_event_msg == "")
|
|
src << "There currently is no known custom event taking place."
|
|
src << "Keep in mind: it is possible that an admin has not properly set this."
|
|
return
|
|
|
|
src << "<h1 class='alert'>Custom Event</h1>"
|
|
src << "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>"
|
|
src << "<span class='alert'>[custom_event_msg]</span>"
|
|
src << "<br>"
|