Solved Help needed with adding a permission properly using Vault API

Discussion in 'Spigot Plugin Development' started by Roree, Jun 14, 2016.

  1. I can successfully give a player a permission using Vault API
    Code (Java):
    TitlesMain.getPerms().playerAdd(p, "titles.customtitles." + title);
    But it does not actually appear when I check using my permissions plugin (/pex user name)
    Does anyone know why this would be happening?
    #1 Roree, Jun 14, 2016
    Last edited: Jun 14, 2016
  2. Try

    playerAdd(null, P, permission);

    As it will add the permission for all worlds (just in case it is in fact the world that is causing errors.)

    Also any console errors? Have you tried debugging if the method returned success (true)
    • Useful Useful x 1
  3. This worked, thanks!