Updated command plugin reference to owner.
Updated deprecated code