Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PurePerm vars in BasicHUD

Comments in 'Plugin Development' started by ender_kenji, Nov 25, 2015.

  1. ender_kenji
    Offline

    ender_kenji New Member

    Joined:
    Oct 13, 2015
    Posts:
    29
    Minecraft User:
    EnderKenji
    Hey,, I wanna add a new vars (pureperm group) in BasicHUD, I using this code. But not working.... Can anyone help?
    PHP:
    if (($pp $pm->getPlugin("PurePerms")) !== null) {
            
    $vars["{group}"] = $pp->getGroup($player->getName());
    }
  2. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Try
    PHP:
    if (($pp $pm->getPlugin("PurePerms")) !== null) {
            
    $vars["{group}"] = $pp->getUserDataMgr()->getGroup($player)->getName();
    }
    Legoboy0215 likes this.
  3. ender_kenji
    Offline

    ender_kenji New Member

    Joined:
    Oct 13, 2015
    Posts:
    29
    Minecraft User:
    EnderKenji
    Not Working.
  4. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Can you report the problem (CrashDump, ServerLog, etc)?

Share This Page

Advertisement