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

Permissions

Comments in 'Plugin Development' started by Sensej, Sep 27, 2014.

  1. Sensej
    Offline

    Sensej New Member

    Joined:
    Aug 5, 2014
    Posts:
    64
    Hello Coders,
    I know how i can set Permission
    $player->setPermission("...");
    But how i can unset them?

    -Sensej
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    unsetPermission()

    Also, if you're in a plugin, don't call it on the Player directly. Call it on a Permissionattachment by $player->addAttachnent)) instead.
    64FF00 likes this.
  3. Sensej
    Offline

    Sensej New Member

    Joined:
    Aug 5, 2014
    Posts:
    64
    It will crash the Server:
    Error information
    Call to a member function isEnabled() on string
    File: /src/pocketmine/permission/PermissibleBase
    Line: #128
    Error level: E_ERROR
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What did you use? You must've passed wrong arguments.
    Last edited: Oct 4, 2014
  5. Sensej
    Offline

    Sensej New Member

    Joined:
    Aug 5, 2014
    Posts:
    64
    Hmm can you show me please an example?
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I'm asking you to show me your unsetPermission() code...

Share This Page

Advertisement