Skip to content

Files

Latest commit

69600f9 · Sep 4, 2018

History

History
6 lines (3 loc) · 733 Bytes

README.md

File metadata and controls

6 lines (3 loc) · 733 Bytes

Commands

Lukkit allows you to create simple or even complex commands using just a few simple lines of Lua. Commands created using Lukkit work just the same as a command creating via the Spigot API in Java would. Specifying a name for each command is required, but the other options allow you to extend the command and are optional.

Commands can be created using the plugin.addCommand() method. Two parameters are required for this method, the first being a command options table and the second a callback function with a single parameter known as the CommandEvent.