diff --git a/modular_zumos/code/modules/tgs/chat_commands.dm b/modular_zumos/code/modules/tgs/chat_commands.dm new file mode 100644 index 00000000000..b7911baffab --- /dev/null +++ b/modular_zumos/code/modules/tgs/chat_commands.dm @@ -0,0 +1,7 @@ +/datum/tgs_chat_command/who + name = "who" + help_text = "Lists everyone currently on the server" + admin_only = FALSE + +/datum/tgs_chat_command/who/Run(datum/tgs_chat_user/sender, params) + return tgswho() diff --git a/modular_zumos/code/modules/tgs/custom_procs.dm b/modular_zumos/code/modules/tgs/custom_procs.dm new file mode 100644 index 00000000000..fb935a65f9f --- /dev/null +++ b/modular_zumos/code/modules/tgs/custom_procs.dm @@ -0,0 +1,11 @@ +/proc/tgswho() + var/list/message = list("Players: \n") + var/list/player_keys = list() + for(var/player in GLOB.clients) + var/client/C = player + player_keys += "[(C in GLOB.admins) ? "[C.holder.fakekey ? C.holder.fakekey : C]" : C]" + + for(var/verified_player in player_keys) + message += "- [verified_player]\n" + + return jointext(message, "") diff --git a/tgstation.dme b/tgstation.dme index 14e0361c19b..1582ba36713 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -9487,5 +9487,7 @@ #include "modular_zubbers\modules\plexagon_selfserve\code\shame_box.dm" #include "modular_zubbers\modules\plexagon_selfserve\code\sign.dm" #include "modular_zubbers\modules\plexagon_selfserve\code\time_clock.dm" +#include "modular_zumos\code\modules\tgs\chat_commands.dm" +#include "modular_zumos\code\modules\tgs\custom_procs.dm" // END_INCLUDE