Solved getPlayer(string) Question

Discussion in 'Plugin Development' started by pookeythekid, Jul 26, 2014.

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

    pookeythekid

    I've seen that Bukkit deprecated Bukkit.getServer().getPlayer(<insert player name>); because it's no longer guaranteed that two player's won't have the same name. I'm curious about this, since I thought Minecraft didn't let anyone register their new account if their name is the same as someone else's existing username? If so, is this just a result of some people having their server on offline mode?
     
  2. Offline

    Mr360zack

    Uhm, two people can't be online at the same time with the same name.. this is only deprecated to raise awareness for the potential plugin-breaking updating that Minecraft is bringing in 1.8. It is just to raise awareness about UUIDS. Bukkit#getPlayer will be un-deprecated after 1.8 is released.
    :)
     
  3. Offline

    xTigerRebornx

    pookeythekid Mojang is planning on adding name changing in the future. Any persistant data should be stored using the players UUID instead of name. Any session-based things can still use names, as the Player has to 'refresh' their session to allow name changes to occur (afaik)
     
  4. Offline

    pookeythekid

    Mr360zack Oh, that's good to know. Thanks. However... What's Online Mode for then, if two players of the same name can't be on the server at once, no matter the conditions? Or is that not what you meant, and you happened to overlook where I said "If so, is this just a result of some people having their server on offline mode?"
     
  5. Offline

    Mr360zack

    If online mode is disabled, this just means mojang doesn't authenticate when a player joins.
    Which allows for cracked accounts to join.
    Still, two usernames cannot be online at the same time.
     
  6. Offline

    pookeythekid

    xTigerRebornx Ohh thanks. I forgot they were adding that; I've only briefly heard of it. This is a little upsetting, since it'll be quite difficult to find a way around- oh wait a second, I just did find a way to adjust to this... xD

    Anyway, thanks for the help.
     
Thread Status:
Not open for further replies.

Share This Page