Solved Bukkit.getPlayer(String name) deprecated

Discussion in 'Plugin Development' started by cfil360, Jul 11, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    cfil360

    This method has been deprecated for a few development builds now. How are players supposed to target other players for commands? Is bukkit suggesting people type in the targeted player's UUID? Thanks for the help.
     
  2. Offline

    Gater12

    cfil360
    Should only return null if the player is not online.
     
    cfil360 likes this.
  3. Offline

    cfil360

    Gater12 you're right, but do you know anything about the plan for future use/changes of this method?
     
  4. Offline

    1Rogue


    None, it was deprecated as a visible warning to move to UUID's, since they will result in faster lookup times etc. You can still use the method as-is and should always be able to.
     
    cfil360 likes this.
  5. Offline

    ZodiacTheories

    1Rogue

    Do you know when it is going to come out of deprecation?
     
  6. Offline

    Gater12

  7. Offline

    ZodiacTheories

    Gater12

    Ah ok, I just don't like my code all neat and tidy and then a big yellow line in one of my lines. Thanks :p
     
Thread Status:
Not open for further replies.

Share This Page