you could do something like this
package someCommand{
function serverCmdMessageSent(%cl, %msg){
if(!getWord(%msg, "!command")){
%args = strReplace(%msg, "!command", "");
//args is all of the text after !command and %cl is the client, do whatever you need to here
return;
}
parent::serverCmdMessageSent(%cl, %msg);
}
};