Solved Clear a players permissions.

Discussion in 'Plugin Development' started by Lightspeed, Dec 16, 2015.

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

    Lightspeed

    The question is in the title.
     
  2. Offline

    teej107

    @Lightspeed Have you tried looking in the JavaDocs?
     
  3. Offline

    Lightspeed

    @teej107 I tried googling an awnser.
     
  4. Offline

    mythbusterma

    @Lightspeed

    I will give you a hint, it's in the Javadocs.

    That being said, doing this will really mess with a lot of plugins, especially permissions plugins.
     
  5. Offline

    mcdorli

    This won't even get to DBO, this stuff is not allowed.
     
  6. Offline

    Lightspeed

    I got it.
    Code:
    for (PermissionAttachmentInfo key : p.getEffectivePermissions())
                att.unsetPermission(key.getPermission());
    Edit
    Code:
    att.setPermission(key.getPermission(), false);
     
    Last edited: Dec 17, 2015
  7. Offline

    Mrs. bwfctower

    Why not? If you specifically say that it clears the player's permissions, then what's the problem?
     
  8. Offline

    mcdorli

    The same as selfOp. automatic deOP, and selfPerm plugins are not allowed
     
  9. Offline

    Lightspeed

    Is there a problem with this(It's for a permissions system)?
     
  10. Offline

    Mrs. bwfctower

    I haven't seen any rules against it, as long as you specifically say that you have that feature.
     
Thread Status:
Not open for further replies.

Share This Page