I dont know how to #349


  • Waiting
Open
  • alezefombi created this issue Aug 23, 2022

    I dont know any plugin for spawn so i wanted to make my own and i dont know whats the perm or how to delete perm without "Unknown command. Type "/help" for help." heres the code:
    spawn:
      command: /spawn
      type:
      - ADD_PERMISSION
      - RUN_COMMAND
      runcmd:
      - /warp spawn
      permission-required: false

  • alezefombi added a tag Waiting Aug 23, 2022
  • alezefombi edited description Aug 24, 2022
  • tudubucket posted a comment Sep 29, 2022

    You should doing this instead:

     

    spawn:
      command: /spawn
      type: RUN_COMMAND
      runcmd:
      - '/warp spawn' 
      permission-required: false

     

    If you want to add some permission to player when they use /spawn:

    ...

      runcmd:
      - '/warp spawn' 

      - '$Script$AddPermission=your.custom.permission'

    ...

     

    $Script$AddPermission= to add permission, $Script$AddPermission= to remove a permission

     

    If you want player requires a permission (like they need to have permission server.spawn to use the command, or anything you want) to use /spawn command:

    ...

      runcmd:
      - '/warp spawn' 
      permission-required: true

      permission-node: server.spawn (or anything you want)

     

    Note: You need Vault and a Permission Manager Plugin (like LuckPerms) for permission manager


To post a comment, please login or register a new account.