πŸ“˜Custom Args

This is a guide on how to create custom tab-complete args.

Overview

This guide will show you how to create custom tab-complete args for any registered command on your spigot or paper server.

Custom Tab-Complete Args

  1. Open the args.yml found in this plugins folder.

  2. Change the key value for enabled to true and start inputting the command you want to have a custom tab-complete like shown below.

  3. Once you're done, reload or restart to apply changes.

'1':
    command: msg
    args:
      '1':
      - arg1
      '2':
      - arg2
      '3':
      - arg3
      '4':
      - arg4

Custom Arg Permission Checks

You can setup permission checks for each tab-complete option if the permission ends with the same arg. In the example below if a user only had essentials.warps.spawn the wild warp would not be an option in tab-complete.

 '1':
    permission-check: true
    permission: essentials.warps.
    command: warp
    args:
      '1':
      - spawn
      - wild

Last updated