Solved permission

Discussion in 'Plugin Development' started by EDSEL, Aug 8, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    EDSEL

    What should I do so that the command can be used only by the person who has OP


    Code:
    name: Spawn
    version: 1.0
    author: EDSEL
    main: spawn.core.Main
    commands:
       setspawn:
        description: asdsadasdasd
       spawn:
        description: asdsadsad
    
     
  2. Offline

    maxwell71

    Code:
    if(p.hasPermission("yourpermission")){
       //your code
    }
    
     
    EDSEL likes this.
  3. Offline

    CraftCreeper6

    @EDSEL
    Can I see your code please?

    You need to use if (player#hasPermission(permission))
     
    EDSEL likes this.
  4. Offline

    EDSEL

    nvm, its worked, thx
     
    Last edited: Aug 12, 2019
Thread Status:
Not open for further replies.

Share This Page