From 718aed93a00a8e34ecfbe1dc98054a2ec52f3e65 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 31 Aug 2016 22:45:19 +0200 Subject: Add warning to add categories and entries early --- API.md | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3