Make sure player is not null before sending message (as player may be offline)