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

[PurePerms] How to add a player to a existing group?

Discussion in 'Development' started by Aenteritas, Jul 27, 2018.

  1. Aenteritas

    Aenteritas Silverfish

    Messages:
    22
    I would like to code that when a player execute /levelup that he will be added to a new existing group using PurePerms.
    How i should code this?

    This is not working:
    PHP:
    $this->getServer()->getPluginManager()->getPlugin("PurePerms")->addToGroup($name"Developer");
    What should i use use instead?
     
  2. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Why role, why not a STR like {level}
     
  3. Aenteritas

    Aenteritas Silverfish

    Messages:
    22
    Because i want that so.
     
  4. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
  5. Aenteritas

    Aenteritas Silverfish

    Messages:
    22
  6. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Should full code please
     
  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.