Add warning to add categories and entries early
This commit is contained in:
parent
c55539578c
commit
718aed93a0
4
API.md
4
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
|
and a template function to build the entry formspec from the entry
|
||||||
data.
|
data.
|
||||||
|
|
||||||
|
**Important**: You must call this function before any player joins, but not later.
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
* `id`: Unique category identifier as a string
|
* `id`: Unique category identifier as a string
|
||||||
* `def`: Definition table, it has the following fields:
|
* `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
|
end result of an entry looks like, this is done by `build_formspec` from
|
||||||
the category definition.
|
the category definition.
|
||||||
|
|
||||||
|
**Important**: You must call this function before any player joins, but not later.
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
* `category_id`: Identifier of the category to add the entry into
|
* `category_id`: Identifier of the category to add the entry into
|
||||||
* `entry_id`: Unique identifier of the new entry, as a string
|
* `entry_id`: Unique identifier of the new entry, as a string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user