From the API, when you whisper you need to repeat the whisper for each person you want to receive it. Here's some sample code from MutantYearZero that should illustrate the point (though perhaps not exactly how you'd want to do it, YMMV): reportBadPushCounts = function(playerid){
var player=getObj('player',playerid);
switch(state.MutantYearZero.config.reportMode){
case 'public':
sendChat(player.get('displayname'),'/direct '+
makeErrorMsg('Attempting to push with modified dice counts.')
);
break;
case 'gm+player':
if(!playerIsGM(playerid)){
sendChat('','/w "'+player.get('displayname')+'" '+
makeErrorMsg('Do not adjust the number of dice when pushing.')
);
}
/* break; // intentional drop thru */
case 'gm':
if(playerIsGM(playerid)){
sendChat('','/w gm '+
makeErrorMsg('Cannot adjust the number of dice in a Push attempt.')
);
} else {
sendChat('','/w gm '+
makeErrorMsg(player.get('displayname')+' attempted to Push with an altered number of dice.')
);
}
break;
default:
break;
}
},
I have a setting that configures how errors are reported. They can either be Public, GM-only or GM & Player. In the case where they are reported to the GM and Player, it will it will whisper to the player if they are not a GM, and then whisper to the GM. (to avoid double whispers to the GM).