Get Essentials Nickname?

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

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


  2. Offline


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


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


    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


    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)

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


    Meatiex once you have the files, use

    File file = new 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);

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

Share This Page