Expand ~ in event_command too
player: Remove unused variable