Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modular_zumos/code/modules/tgs/chat_commands.dm
Original file line number Diff line number Diff line change
@@ -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()
11 changes: 11 additions & 0 deletions modular_zumos/code/modules/tgs/custom_procs.dm
Original file line number Diff line number Diff line change
@@ -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, "")
2 changes: 2 additions & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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