You can now create custom commands which can run your own actions
Code (YAML):
mycoolcommand:
aliases
:
- mycoolcmd
- coolcommand
- coolcmd
actions:
- "msg
:
&aHeya &2
%player_name%&a! Cool command right? %arg-length% %arg-0% %arg-1%"
You can use %arg-length% to see the amount of arguments, and %arg-X% where X is a number starting from 0 that return the specified argument.
When adding a new command, you may need to restart the server instead instead of reloading. Though editing commands should be fine.