Permissible not granting all permissions?

Discussion in 'Plugin Development' started by Vexil, Dec 6, 2013.

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

    Vexil

    I am adding '*' to a player via permissible, and it isn't granting the user all of the permissions. I have added several different other permissions, and they seem to work however * isn't. I have my entire cross-server SQL permissions plugin done accept for this bug, so if anyone could help that would be great.

    EDIT: Here's the code (It's just a test to add the * node)
    Code:java
    1. Player p = e.getPlayer();
    2.  
    3. PermissionAttachment attach = null;
    4.  
    5. for (PermissionAttachmentInfo pai : p.getEffectivePermissions()) {
    6.  
    7. if ((pai.getAttachment() != null) && (pai.getAttachment().getPlugin() != null) &&
    8. ((pai.getAttachment().getPlugin() instanceof Main))) {
    9.  
    10. attach = pai.getAttachment();
    11. break;
    12.  
    13. }
    14.  
    15. }
    16.  
    17. if (attach == null) {
    18.  
    19. attach = p.addAttachment(Main.getInstance());
    20. attach.setPermission("*", true);
    21.  
    22. }
     
  2. Offline

    JRL1004

    Vexil I don't think you can just wildcard it like that. Try: attach.setPermission("'" + "*" + "'", true);
     
  3. Offline

    Vexil

    That adds the permission '*', and the ' s are only used in YAML formatting. The node is just normal *.
     
  4. Offline

    JRL1004

    Vexil I know but an asterisk is also a wildcard in Java so I would assume you can't just use it. Try what I put and tell me if it fails or works.
     
  5. Offline

    Vexil

    Yes, I know it is a wildcard in Java. And it doesn't work as I said before. Didn't really have to try it to know that.
     
  6. there is no * node is the superperm system
     
Thread Status:
Not open for further replies.

Share This Page