I can't seem to get this to work, here's the code I'm using. The console log says that the file is being executed and the brick I place, I call 'buyItem' (without the quotes)
What am I doing wrong?
if(isPackage(BrickControl)) {
deactivatePackage(BrickControl);
}
package BrickControl {
function _buyItem::onActivate(%this, %player, %client, %pos, %vec)
{
messageClient(%client, '', "\c6This is a test.");
parent::onActivate(%this, %player, %client, %pos, %vec);
}
};
activatePackage(BrickControl);