Get Essentials Nickname?

Discussion in 'Plugin Development' started by Meatiex, Jul 29, 2014.

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

    Meatiex

  2. Offline

    ResultStatic

    Meatiex just put essentials in ur references like craftbukkit
     
  3. Offline

    mine-care

    On the chat, get the display name, I think that's what they change as I did in ma plugin
     
  4. Offline

    Meatiex

    I am trying to get the player's nickname by reading the config, because I have 2 Different Servers (NOT SPIGOT) and one of them has the nicknames on them, Their all on the same computer so this would work with files, just need help to do so.
     
  5. Offline

    Beeperdp

    Meatiex Wouldn't you rather just use the essentials API to grab their nickname if getting the display name will not work for you? (If the api supports that)

    EDIT:
    And also, the servers are still seperate so wouldn't the getDisplayName() method work?
     
  6. Offline

    mine-care

    Meatiex once you have the files, use

    File file = new file(path.to.file); ex. File f =new File("c:/server/plugins/essentials/Players/"+player.getName );(or if its with uuids use get unique Id).
    YamlConfiguration yc = YamlConfiguration.loadfromfile(f);
    yc.getString("nickname");

    Hope I helped
     
    Diamond_King likes this.
Thread Status:
Not open for further replies.

Share This Page