summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-08-13 10:35:27 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-08-13 10:35:27 +0200
commit8438cc0611d42aa896c055aa0abfb08528fb789d (patch)
tree462e41b1a76eb51f442cac3785adeb38afaef115 /MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua
parentMerge pull request #2417 from mjhanninen/fix-clang-warnings (diff)
parentFixed a few missing MCServers in APIDump (diff)
downloadcuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar.gz
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar.bz2
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar.lz
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar.xz
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.tar.zst
cuberite-8438cc0611d42aa896c055aa0abfb08528fb789d.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua b/MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua
index 5a5347310..8f24fc881 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnPreCrafting.lua
@@ -6,13 +6,13 @@ return
DefaultFnName = "OnPreCrafting", -- also used as pagename
Desc = [[
This hook is called when a {{cPlayer|player}} changes contents of their
- {{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for a match by MCServer.
+ {{cCraftingGrid|crafting grid}}, before the built-in recipes are searched for a match by Cuberite.
Plugins may use this hook to provide a custom recipe.</p>
<p>
If you intend to tweak built-in recipes, use the {{OnPostCrafting|HOOK_POST_CRAFTING}} hook, because
that will be called once the built-in recipe is matched.</p>
<p>
- Also note a third hook, {{OnCraftingNoRecipe|HOOK_CRAFTING_NO_RECIPE}}, that is called when MCServer
+ Also note a third hook, {{OnCraftingNoRecipe|HOOK_CRAFTING_NO_RECIPE}}, that is called when Cuberite
cannot find any built-in recipe for the given ingredients.
]],
Params =
@@ -22,7 +22,7 @@ return
{ Name = "Recipe", Type = "{{cCraftingRecipe}}", Notes = "The recipe that Cuberite will use. Modify this object to change the recipe" },
},
Returns = [[
- If the function returns false or no value, other plugins' callbacks are called and then MCServer
+ If the function returns false or no value, other plugins' callbacks are called and then Cuberite
searches the built-in recipes. The Recipe output parameter is ignored in this case.</p>
<p>
If the function returns true, no other callbacks are called for this event and Cuberite uses the