diff options
author | Wuzzy <almikes@aol.com> | 2016-08-31 22:45:19 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-31 22:47:47 +0200 |
commit | 718aed93a00a8e34ecfbe1dc98054a2ec52f3e65 (patch) | |
tree | c811e30c70457d1be907fcc519c5a50760d39504 | |
parent | c55539578c14660164d55fa8c409ab4b298ecd28 (diff) |
Add warning to add categories and entries early
-rw-r--r-- | API.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -89,6 +89,8 @@ Adds a new category. You have to define an unique identifier, a name and a template function to build the entry formspec from the entry data. +**Important**: You must call this function before any player joins, but not later. + #### Parameters * `id`: Unique category identifier as a string * `def`: Definition table, it has the following fields: @@ -152,6 +154,8 @@ data which defines the entry. Note you do not directly define here how the end result of an entry looks like, this is done by `build_formspec` from the category definition. +**Important**: You must call this function before any player joins, but not later. + #### Parameters * `category_id`: Identifier of the category to add the entry into * `entry_id`: Unique identifier of the new entry, as a string |