How to setup own permissions in pex?

Discussion in 'Plugin Development' started by Didi1150, Apr 14, 2020.

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

    Didi1150

    Hello, i'm currently developing on a tablist prefix plugin, that will show the pex group the playee is in. My problem is, say for example: I'm making admin prefix so i write: if(player.hasPermission("server.admin"), then make the prefix admin. But i can't get this permission to work. I wrote it into the plugin.yml and the pex permission.yml, but nothing appears in the tablist. How can I solve this problem?
     
  2. Offline

    timtower Moderator Moderator

    @Didi1150 How are you checking it? Is the code itself running?
     
  3. Offline

    Strahan

    Also just to be clear, if you think you can use permission nodes to check PEX group membership... you cannot.
     
  4. Offline

    timtower Moderator Moderator

    Unless that group has a specific permission node attached.
     
  5. Offline

    Strahan

    Yea, but that would be a terrible sloppy way to do it. I can't imagine why you'd do that instead of use the API properly.
     
  6. Offline

    timtower Moderator Moderator

    I totally agree with that, this is easier for inexperienced developers though.
     
Thread Status:
Not open for further replies.

Share This Page