QuickWho.js

resources/examples/QuickWho.js · 552 B

From the archive CoffeeMud_5_5_5.zip

Download the archive   « Back to the archive contents

//extends com.planet_ink.coffee_mud.Commands.StdCommand
var CMLib=Packages.com.planet_ink.coffee_mud.core.CMLib;
var CMParms=Packages.com.planet_ink.coffee_mud.core.CMParms;

function ID(){ return "QuickWho";}

var commands=CMParms.toStringArray(CMParms.makeVector("QUICKWHO"));

function getAccessWords() { return commands;}

function execute(mob,commands,x) {
    var e;
    var M;
    for(e=CMLib.players().players();e.hasMoreElements();)
    {
        M=e.nextElement();
        if(M!=null)
            mob.tell(M.Name());
    }
    return true;
}

Site Stats

Snippets: 1791
Codebases: 571