summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-31 22:45:19 +0200
committerWuzzy <almikes@aol.com>2016-08-31 22:47:47 +0200
commit718aed93a00a8e34ecfbe1dc98054a2ec52f3e65 (patch)
treec811e30c70457d1be907fcc519c5a50760d39504
parentc55539578c14660164d55fa8c409ab4b298ecd28 (diff)
Add warning to add categories and entries early
-rw-r--r--API.md4
1 files changed, 4 insertions, 0 deletions
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