revering back to collar commit

This commit is contained in:
Repede
2019-03-11 23:13:04 -04:00
parent eb06799e86
commit 7fcb6c1488
28 changed files with 329 additions and 20684 deletions
+6 -16
View File
@@ -1,30 +1,20 @@
var/global/client_count = 0
/client/New()
..()
++global.client_count
/client/Del()
..()
--global.client_count
/datum/tgs_chat_command/status
/datum/server_tools_command/status
name = "status" //the string to trigger this command on a chat bot. e.g. TGS3_BOT: do_this_command
help_text = "Will broadcast the current player count and other round information" //help text for this command
required_parameters = 0 //number of parameters required for this command
admin_only = FALSE //set to TRUE if this command should only be usable by registered chat admins
/datum/tgs_chat_command/status/Run(datum/tgs_chat_user/sender, params)
/datum/server_tools_command/status/Run(sender, params)
return "```PLAYERCOUNT: [SERVER_TOOLS_CLIENT_COUNT] ROUND DURATION: [roundduration2text()]```"
// - FAX
/datum/tgs_chat_command/readfax
/datum/server_tools_command/readfax
name = "readfax"
help_text = "Reads a fax with specified faxid"
required_parameters = 1
admin_only = TRUE
/datum/tgs_chat_command/readfax/Run(datum/tgs_chat_user/sender, params)
/datum/server_tools_command/readfax/Run(sender, params)
var/list/all_params = splittext(params, " ")
var/faxid = all_params[1]
var/faxmsg = return_file_text("[config.fax_export_dir]/fax_[faxid].html")