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

Solved PurePerms API

Discussion in 'Development' started by minijaham, Aug 13, 2020.

  1. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Is there a way to check the name of the group a player is in? I currently have
    PHP:
    $api $this->plugin->getServer()->getPluginManager()->getPlugin("PurePerms");
                if (
    $api->getUserDataMgr()->getGroup($sender)->getName("Knight")){
    But doesn't seem to work. Please help me!
     
  2. Wanny

    Wanny Spider

    Messages:
    8
    getName() == "knight"
    i think
     
  3. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    I've tried that too ._. but doesn't work
     
  4. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Nevermind, I forgot to return the value. Now it works perfectly fine! Thank you for your help :D
     
  5. Wanny

    Wanny Spider

    Messages:
    8
  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.