Maxlego08 / zMenu

A plugin that will allow the creation of menu for minecraft, has a complete API for developers
GNU General Public License v3.0
60 stars 10 forks source link

[Suggestion] Add permission for new auto-complete feature #66

Open NoltoxGit opened 7 months ago

NoltoxGit commented 7 months ago

Hello, Would it be possible to add a permission to display an auto-completion command?

commands:
  punish:
    command: punish
    permission: "admin.punish"
    aliases:
      - sanction
    inventory: example_punish
    arguments:
      - name: target
      - name: reason
        auto-completion:
          - cheat
          - chat
          - skin
          - other
        actions:
          - type: message
            messages:
              - "&7You will put a punishment to the player &f&n%target%&r &7with the reason&8: &f%reason%" 
          - type: permission_argument
            permissons:
              - "admin.punish.command"