1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

addPermission

Discussion in 'Development' started by McpeBooster, Mar 11, 2017.

  1. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    How can I add a Permission direct to a Player? This doesnt work for me :/
    PHP:
    $player->addPermission("perm");
     
  2. Shockskill

    Shockskill Silverfish

    Messages:
    15
    GitHub:
    Shockskill
    It works With this
    $player->addAttachment($this, yourpermission, true);
     
  3. McpeBooster

    McpeBooster Baby Zombie

    Messages:
    190
    GitHub:
    mcpebooster
    oh thanks :)
     
  4. Shockskill

    Shockskill Silverfish

    Messages:
    15
    GitHub:
    Shockskill
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Note that each plugin should only have one attachment for each session.
     
    jojoe77777 likes this.
  6. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    It can be
    PHP:
    $player->addAttachment($plugin$permissiontrue);
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.