Making Permission Plugin, * Not Working

Discussion in 'Plugin Development' started by TehVoyager, Mar 15, 2014.

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

    TehVoyager

    I am making a Permissions plugin but don't know how to make the '*' feature from Permissions Ex that gives all perms from that point on. Anybody know how to do this? Thanks

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  2. Offline

    NathanWolf

    You have to implement support for * .... I can't tell from your code, but you are trying to implement your own permission/group manager, right? The wildcards are not something magical and automatic, you have to check for them in a pnode and handle it appropriately.
     
  3. Offline

    TehVoyager

    NathanWolf
    I found that out by installing PermissionsEX and it worked with pex. The Pex source code is huge and hard to navigate, do you have any idea on coding my own *? Thanks You

    I've been looking through the PEX source code but I can't see where they coded it to give all perms. I'll now look through group manager

    zml2008

    Sorry To Tag You But I'd Like To Know How You Did It In Pex(Make * Perms Work).

    B.U.M.P

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  4. Offline

    Space_BR

    Code:java
    1. if (cmd.getName().equalsIgnoreCase("teste")) {
    2. if (p.hasPermission("'*'")) {
    3. p.sendMessage("test with you have * permission");
    4. }
    5. }


    HERE i thing you want to do , if the player has * he can use /teste
     
  5. Offline

    TehVoyager

    Space_BR I can do that for my own plugin but I can't do it with other plugins.
     
  6. TehVoyager
    You'll need to create a permissions attachment for your plugin.

    Take a look at this.
     
  7. Offline

    TehVoyager

    Adamki11s
    I've done All That. The problem is that * doesn't work
     
Thread Status:
Not open for further replies.

Share This Page