Code (Whispers to GM): on('ready',function(){
"use strict";
on('chat:message',function(msg){
if('whisper' === msg.type && msg.playerid !=='API'){
sendChat("Who's Talking", `/w gm <b>${msg.who}</b> is whispering to <b>${msg.target_name}</b>.`);
}
});
});
Code (Tells everyone): on('ready',function(){
"use strict";
on('chat:message',function(msg){
if('whisper' === msg.type){
sendChat("Who's Talking", `<b>${msg.who}</b> is whispering to <b>${msg.target_name}</b>.`);
}
});
}); Result: Who's Talking: The Aaron is whispering to Captain Taco .