summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2017-07-31 10:06:36 +0200
committerLukas Pioch <lukas@zgow.de>2017-08-27 14:54:41 +0200
commite5758e8be3720893d9c42b6cffc1a84bedced71b (patch)
tree2d2e4cf5c59012f2ee1b0c932cba571fc2b1e88f /Server
parentAPIDoc: Corrected Note for AddPage (diff)
downloadcuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar.gz
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar.bz2
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar.lz
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar.xz
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.tar.zst
cuberite-e5758e8be3720893d9c42b6cffc1a84bedced71b.zip
Diffstat (limited to 'Server')
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua10
-rw-r--r--Server/Plugins/APIDump/Hooks/OnPlayerEditedBook.lua1
-rw-r--r--Server/Plugins/APIDump/Hooks/OnPlayerEditingBook.lua1
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,