add player argument to onReceive callback.