Replace your code with this and get the same log parts: (it should put a line in the console "Test" every time you say something and then "Respond" if it's "Blue")
package blue
{
function serverCmdmessageSent(%client, %text)
{
echo("Test - " @ getSubStr(%text, 0, 4));
if(getSubStr(%text, 0, 4) $= "Blue")
{
echo("Respond");
talk("Red");
}
parent::serverCmdmessageSent(%client, %text);
}
};
activatePackage(blue);