setDisplayName() not working with essentials

Discussion in 'Plugin Development' started by Advocate, Jul 7, 2013.

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

    Advocate

    Hey guys! I have this piece of code....

    Code:
    player.setDisplayName("[Test]" + player.getName());
    This works beautifully on a fresh install of bukkit, but if I try to run it with essentials..... nothing happens. No change to names. I could also see the problem, where if the players display name is already set by Essentials or something else, it will get reset by this but if you do this instead

    Code:
    player.setDisplayName("[Test]" + player.getDisplayName());
    Then you run the risk of looping to something like this

    [Test][Test][Moderator]7cardcha

    Is there an elegant solution?

    Thanks for your time.
     
  2. i have the same problem with essentials...
     
  3. Offline

    fireblast709

    Jarnovdvelde This thread has been dead for over a year, let it rest in peace :p.
     
  4. Offline

    mythbusterma

    Jarnovdvelde

    And I have a problem with people necroposting. Essentials chat changes the way nicknames and things of that nature are handled, just look at their documentation.
     
Thread Status:
Not open for further replies.

Share This Page