Player#getTarget is deprecated. Act accordingly.