Updating for Player UUIDs in 1.7.9

Discussion in 'Plugin Development' started by morshu9001, May 22, 2014.

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

    morshu9001

    I've been out of the loop on these new updates. Mojang released like 7 in a week.

    I've heard that players will be able to change their names. One of my plugins logs players' names. So will getting the name of a player now give you useless information? Are all the plugins that do this (very many) completely trashed unless all the pluginmakers update them?

    And if we do need to change how our plugins handle user identities, which method do we use to verify user identities if we can't check by name? There's an entity UUID, but I'm not exactly sure how that works and if it stays the same across server restarts.

    Thanks in advance for any help. I'm freaking out because I don't want my administration plugin to become useless.
     
  2. Offline

    Bammerbom

    morshu9001
    Yes every plugin that stores data in files is useless now.

    You can use UUIDs to store data now: player.getUniqueIndentifier();

    And that method stays only the same in Online mode.
     
  3. Offline

    morshu9001

    Bammerbom Thanks for clearing that up. Bummer. It shouldn't be hard to convert my plugin for this, but I'll have to release a transitional version of my plugin that updates all the logged player names to UUIDs pronto!
     
  4. Offline

    Garris0n

    getUniqueId()*
     
  5. Offline

    Bammerbom

    Garris0n Oops did it out of my head I am on my phone xD
     
  6. Offline

    RawCode

    Yes every plugin that stores data in files is useless now.

    lie....


    as long as mojang not actually allowed to change nicknames everything is fine
     
  7. Offline

    Azubuso

    In 1.7.9 it's totally fine to still use playernames, only as of actual 1.8 (Or whenever Mojang decides to enable the changing) can we change our usernames, not beforehand.
     
  8. Offline

    RawCode

    mojang may delay this feature for ages, hysteria about UUID for no real reason.
     
  9. Offline

    morshu9001

    I just thought about this: If your plugin has a command that takes a player name as a parameter, and two people have the same name, how does it know which one to target? I guess it might put a number next to the second person to use a name. The whole thing sounds annoying to me.
     
  10. Offline

    RawCode

    morshu9001
    Looks like someone forgot to read mojang post about UUIDs, your question is ignored, try again.
     
  11. Offline

    Azubuso

    morshu9001 Well of course there will still be unique usernames, as in, you can't go off and call yourself Notch while some other user has the username Notch. So no worries about that.
     
  12. Offline

    morshu9001

    Alright, good. I don't really play Minecraft anyone, only very rarely, but I want to keep my plugin functioning until I can pass it on to someone else. To make matters worse, the Bukkit API reference is down at the moment :/
     
Thread Status:
Not open for further replies.

Share This Page