TabCompleteFilter
  • 👋Welcome
  • 📙Commands
  • 📕Files
    • 📕Args.yml
    • 📕Config.yml
    • 📕Bungee-Config.yml
  • 🗣️FAQ
  • 📘Bungee/Waterfall Guide
  • 📘Spigot/Paper Guide
  • 📘Filter Guide
  • 📘Custom Args
Powered by GitBook
On this page
  • Overview
  • Custom Tab-Complete Args
  • Custom Arg Permission Checks

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.warp.spawn the wild warp would not be an option in tab-complete.

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

Last updated 1 year ago

📘