Go to the plugin config (plugins/CommandMaker/config.yml)
Under the commands section of the config, write the name of your command, then under that, write actions
commands:
mycommand:
actions:
After that, write what you want this command to do.
You have 3 options,
MESSAGE: Sends a message to the player using color codes and/or minimessage
PLAYER: Sends a command as the player. Good for creating command aliases for your players
CONSOLE: Sends a command as the console
In your actions, you can write {player} , which will be replaced with the command sender's username.
You can also include PAPI placeholders
Say that you wanted to make a command that sends a message to the player and gives them a shovel
commands:
dig:
actions:
- "MESSAGE:<yellow><bold>Get digging, {player}!"
- "CONSOLE:give {player} diamond_shovel"
Before you save, make sure you add the command to enabled-commands at the top of the config file
config:
enabled-commands:
- dig
Then save! Either restart your server or run /commandmaker reload (if you run the command, you may need to leave and rejoin for the commands to tab complete)
You can repeat this infinitely for all the commands you wish to make. Looking for more complex stuff, like arguments? Check out the other pages on the left