Add contents to your commands
This is a guide to learn how to add contents to your commands by using a command resource file.
Introduction
With SmartCommands
, you can add advanced features like an advanced command aid system with a page system in chat, an automatic tab completer for your command arguments or simply features to get and manage them easily and to go faster in their development.
How to add contents to your commands ?
Create the file
First, to add contents to our commands, we need to create a json
file in your plugin to store them. We recommend that you name this file as follows: command_<name>.json
You juste have to replace the <name>
part by the name of your command.
Add contents to your commands
Now, let's fill the file that we've juste created. Here, my command's name is item
and I will use it in all this guide.
The following code will be the first step of all our command contents files. Write it in your json
file and replace "item"
by the name of your command.
Command aid system and automatic tab completer
To add a command aid system and an automatic tab completer, read the guide below.
pageCommandUsagePages system
To add a pages system to your command aid system, read the guide below.
A command aid system must be created to use this feature.
Get easily command messages
To get easily your command messages, read the guide below.
pageCommandMessageLast updated