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

Check group of player

Discussion in 'Help' started by Wanny, Jul 18, 2020.

  1. Wanny

    Wanny Spider

    Messages:
    8
    i want to know, how can i chek if player is on this group

    srry for my bad english
     
  2. Secretsilver313

    Secretsilver313 Silverfish

    Messages:
    18
    GitHub:
    secretsilver
    What do you mean by group?
     
  3. Wanny

    Wanny Spider

    Messages:
    8
    Group, pure perms. Cuz i want to create kitUI with groups
     
  4. JviguyGamesYT

    JviguyGamesYT Baby Zombie

    Messages:
    113
    GitHub:
    jviguy
    i dont know much about the api of pureperms but i think u can assign permissions to a group why not just make a permission for the kit and give the said group that permission then just check if the sender has the permission for the kit
     
  5. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Code:
    $this->group = $this->getPlugin()->getServer()->getPluginManager()->getPlugin("PurePerms")->getUserDataMgr()->getGroup($sender)->getName(); //getting group of the player
     
    if ($this->group == (" group ")) { //check if they are in that group
    
     
  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.