Skip to content

Commit

Permalink
Lua_api.txt: Add chat command params info
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezhh authored and paramat committed Jan 13, 2018
1 parent 7927529 commit 8349a3d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/lua_api.txt
Expand Up @@ -5156,6 +5156,17 @@ Definition tables
-- Returns boolean success and text output.
}

Note that in params, use of symbols is as follows:

* `<>` signifies a placeholder to be replaced when the command is used. For example,
when a player name is needed: `<name>`
* `[]` signifies param is optional and not required when the command is used. For
example, if you require param1 but param2 is optional: `<param1> [<param2>]`
* `|` signifies exclusive or. The command requires one param from the options
provided. For example: `<param1> | <param2>`
* `()` signifies grouping. For example, when param1 and param2 are both required,
or only param3 is required: `(<param1> <param2>) | <param3>`

### Detached inventory callbacks

{
Expand Down

0 comments on commit 8349a3d

Please sign in to comment.