Changing Display Name with Vault

Discussion in 'Plugin Development' started by WolfLeader116, Oct 27, 2014.

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

    WolfLeader116

    Hello, I am making a plugin and nicknames are a part of the plugin. I would like to know how to use Vault (to make it compatible with other plugins) to change a players display name if this is even possible. Thanks!
     
  2. Offline

    Hugs

    You can just use p.setDisplayName(); provided p is the variable for a Player. Display names are picked up with p.getDisplayName(); across all plugins so you shouldn't need vault for this.
     
  3. Offline

    WolfLeader116

    This will not work. That is why I need vault, for compatibility with other plugins. It's because otherwise, it will overwrite everything including prefixes and/or suffixes. This is the way that the plugin works if it finds that vault is not installed though.
     
  4. Offline

    Hugs


    Why is the prefix / suffix set in the display name?
     
  5. Offline

    WolfLeader116

    I am not sure why... I didn't understand this either, but the prefixes and suffixes are done by PEX, and obviously it didn't work, so I need another way to make sure that it never happens with any permissions plugin.
     
Thread Status:
Not open for further replies.

Share This Page