Hi,
I'm trying to call a method when someone adds an item to the inventory or removes it.
Can someone give me a hint what I'm doing wrong?
Thanks in advance.
[ICODE]Inventory.OnChanged.Add( new Action<User>( test ) );
...
public void test( User user )
{
user.Player.SendTemporaryMessage( FormattableStringFactory.Create( "tttttttttttttttttttt" ), Eco.Shared.Services.ChatCategory.Default );
}
[/ICODE]