I have it in a switch, based off a clientCmd, its for CCB, You've seen it. package CCB
{
function ClientCmdChatMessage(%c,%a,%b,%fmsg,%cs,%name,%cp,%msg)
{
if(getWord(%msg,0) $= "CCB")
{
switch$(getWord(%msg,1)
{
//Bunch of functions
case "addToDataBase":
//TheCode
}
}
}
};
activatePackage(CCB);
EDIT: Thats not all the code, i have trust systems and blocking systems in there too.