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

How to use setGroup methode

Discussion in 'Development' started by romainbizet46, Jan 20, 2018.

  1. romainbizet46

    romainbizet46 Witch

    Messages:
    52
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Get the PurePerms instance using
    PHP:
    $pperms $this->getServer()->getPluginManager()->getPlugin("PurePerms");
    then access its API like this:
    PHP:
    $group $pperms->getGroup("The group's name");
    $pperms->setGroup($player$group);
     
    romainbizet46 likes this.
  3. romainbizet46

    romainbizet46 Witch

    Messages:
    52
    Awesome thanks
     
  4. kenygamer

    kenygamer Banned Banned

    Messages:
    106
    GitHub:
    kenygamer
    Did that work? If so, mark your thread as solved.
     
  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.