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

Pureperms help

Discussion in 'Plugin Help' started by tybikman, Jun 1, 2020.

  1. tybikman

    tybikman Silverfish

    Messages:
    22
    I never worked with pureperms, I tried, but something went wrong
    PHP:
    if($p->hasPermission("level.first") == true && $p->hasPermission("level.two") !== true) {
    $amount=$this->e->myMoney($pname);
    if($amount >5000) {
    $this->e->reduceMoney($pname, 5000);
    $this->p->getUserDataMgr()->setPermission($p, "level.two");
    $p->sendMessage("§7[§a*§7] §rLevel §7>> §rВы купили второй уровень за §c5000 §rмонет!");
    return true;
    }
    if($amount <5000) {
    $p->sendMessage("§7[§c*§7] §rLevel §7>> §rНедостаточно монет , стоимость: §c5000 §rмонет!");
    return true;
    }
    }
    else {
    $p->sendMessage("else 1"); // test part
    }
     
  2. MidWolfhunter

    MidWolfhunter Silverfish

    Messages:
    24
    What is your concern?
     
  3. tybikman

    tybikman Silverfish

    Messages:
    22
    how to check permission in pureperms
    (when I connect I automatically get level.first permission)
     
  4. MidWolfhunter

    MidWolfhunter Silverfish

    Messages:
    24
    Check a permission: /listgperm (group)
    /Listgperm (group)

    Setting a permission: /setuperm (group) (permission)
    /Setgperm (group) (permission)
     
  5. tybikman

    tybikman Silverfish

    Messages:
    22
    can i do this in plugin ?
     
  6. MidWolfhunter

    MidWolfhunter Silverfish

    Messages:
    24
    You do this in your server
     
  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.