Added a Active Players verb.

This verb shows you how many players are currently in the game and have been active in the last 10 minutes.
This commit is contained in:
cib
2012-01-19 20:47:52 -08:00
parent 822c6e3923
commit 301682f7fa

View File

@@ -34,3 +34,16 @@
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
else if(!M.client.stealth && (M.client.holder.level != -3))
usr << "\t[M.client]"
/client/verb/active_players()
set category = "OOC"
set name = "Active Players"
var/total = 0
for(var/mob/living/M in world)
if(!M.client) continue
if(M.client.inactivity > 10 * 60 * 10) continue
if(M.stat == 2) continue
total++
usr << "<b>Active Players: [total]</b>"