I don't understand (as usual).
Are you trying to find what called addItem? If addItem is in the player class, and you want the players nick, something like ...
PHP Code:
public function addItem( item, amm )
{
echo( format( "[percent]s ([percent]s) added themselves a weapon", this.nick, this.account ) );
}
Edit: forgive the [percent] -- cannot post percent symbols