Lukkit
  • Home
  • Getting Started
    • Installing Lukkit
    • Your First Plugin
    • Packing and Publishing
  • Storage
    • The StorageObject
    • Example
  • Commands
    • Command Options
    • Command Event
    • Examples
  • Gui
    • Create a simple inv
    • Create an advanced inv
    • Run function if an inventory item has been clicked
  • Events
    • Examples
    • Event List
      • Block
      • Enchantment
      • Entity
      • Hanging
      • Inventory
      • Player
      • Server
      • Vehicle
      • Weather
      • World
  • Globals
    • Global Functions
    • Global Variables
      • Plugin
      • Logging
      • Utilities
  • Wrappers
  • Examples
    • Discord Webhooks (http)
    • Toggle Fly
    • Hello, world!
Powered by GitBook
On this page
  1. Commands

Command Options

PreviousCommandsNextCommand Event

Last updated 6 years ago

The command options table is the first required parameter for the method and the following is a list of specifications that can be made using the table.

Remember that name is the one specification that is required for each command.

Specification

Description

name

Name of the command

description

Description of the command

usage

Message displayed when the command has been executed in an incorrect manner

permission

Permission node required to execute the command

permissionMessage

Message displayed when the user executing the command does not have the required permission node

maxArgs

The maximum amount of arguments for the command

minArgs

The minimum amount of arguments for the command

runAsync

True or false, whether the function should be run in an asynchronous manner

plugin.addCommand()