diff options
Diffstat (limited to 'Server')
-rw-r--r-- | Server/Plugins/APIDump/APIDesc.lua | 10 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua | 1 | ||||
-rw-r--r-- | Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua | 1 |
3 files changed, 7 insertions, 5 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index cfe595f17..251c2e4fb 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -6936,6 +6936,11 @@ These ItemGrids are available in the API and can be manipulated by the plugins, }, Variables = { + m_BookContent = + { + Type = "{{cBookContent|cBookContent}}", + Notes = "If it's a written or a writeable book, it contains the information of the book: Author, title and pages", + }, m_CustomName = { Type = "string", @@ -6971,11 +6976,6 @@ These ItemGrids are available in the API and can be manipulated by the plugins, Type = "number", Notes = "The repair cost of the item. The anvil need this value", }, - m_BookContent = - { - Type = "{{cBookContent|cBookContent}}", - Notes = "If it's a written or a writeable book, it contains the information of the book: Author, title and pages", - }, }, AdditionalInfo = { diff --git a/Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua b/Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua index 275bd129d..11e8dcea1 100644 --- a/Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua +++ b/Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua @@ -13,6 +13,7 @@ return { { Name = "Player", Type = "{{cPlayer}}", Notes = "The player that edited the book" }, { Name = "BookContent", Type = "{{cBookContent}}", Notes = "The class that contains the current info of the book" }, + { Name = "IsSigned", Type = "boolean", Notes = "Player has signed the book" }, }, Returns = [[ If the function returns false or no value, Cuberite calls other plugins with this event. If the diff --git a/Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua b/Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua index 96521c361..b911aaa54 100644 --- a/Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua +++ b/Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua @@ -13,6 +13,7 @@ return { { Name = "Player", Type = "{{cPlayer}}", Notes = "The player that is editing the book" }, { Name = "BookContent", Type = "{{cBookContent}}", Notes = "The class that contains the current info of the book" }, + { Name = "IsSigned", Type = "boolean", Notes = "Player is signing the book" }, }, Returns = [[ If the function returns false or no value, Cuberite calls other plugins with this event. If the function returns true, |