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

Check permission for custom craft

Discussion in 'Development' started by A354-PH, Aug 5, 2019.

  1. A354-PH

    A354-PH Baby Zombie

    Messages:
    186
    GitHub:
    Kizu
    Hi! How to cancel crafting a custom craft if a player doesn't have a specific permission for the custom craft? Thanks in advance :)
     
  2. MalakasPlayzMCPE

    MalakasPlayzMCPE Zombie Pigman

    Messages:
    667
    PHP:
    if($player->hasPermission()){
        
    //craft code
    } else {
       
    //maybe send a message like that there is a rank required for crafting?
    }
    There is not that much we can do if we don't have your code.
     
  3. Deniel

    Deniel Spider Jockey

    Messages:
    42
    GitHub:
    DenielWorld
    Adding on to the last comment, check if the player doesn't have a permission upon the crafting event, then check if the crafting event results in one of your custom craft's and cancel the event if so.
     
    HimbeersaftLP likes this.
  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.