diff --git a/API.md b/API.md index a252359..cc0af97 100644 --- a/API.md +++ b/API.md @@ -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