summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-24 08:55:41 +0100
committermadmaxoft <github@xoft.cz>2014-01-24 08:55:41 +0100
commit8a254faaf7909fec390f1fda6e2cf060fda13462 (patch)
tree9617be2f24f8385ba20195d094800d3e5aaedd49 /MCServer/Plugins/APIDump/Hooks
parentFixed flint&steel failure on the Y world edges. (diff)
parentFixed indentation once and for all. (diff)
downloadcuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.gz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.bz2
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.lz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.xz
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.tar.zst
cuberite-8a254faaf7909fec390f1fda6e2cf060fda13462.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua
index 85c943721..ad2a87ed6 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua
@@ -5,7 +5,7 @@ return
CalledWhen = "A player is tossing an item. Plugin may override / refuse.",
DefaultFnName = "OnPlayerTossingItem", -- also used as pagename
Desc = [[
- This hook is called when a {{cPlayer|player}} has tossed an item (Q keypress). The
+ This hook is called when a {{cPlayer|player}} has tossed an item. The
{{cPickup|pickup}} has not been spawned yet. Plugins may disallow the tossing, but in that case they
need to clean up - the player's client already thinks the item has been tossed so the
{{cInventory|inventory}} needs to be re-sent to the player.</p>
@@ -18,8 +18,9 @@ return
},
Returns = [[
If the function returns false or no value, other plugins' callbacks are called and finally MCServer
- creates the pickup for the item and tosses it, using {{cPlayer}}:TossItem. If the function returns
- true, no other callbacks are called for this event and MCServer doesn't toss the item.
+ creates the pickup for the item and tosses it, using {{cPlayer}}:TossHeldItem, {{cPlayer}}:TossEquippedItem,
+ or {{cPlayer}}:TossPickup. If the function returns true, no other callbacks are called for this event
+ and MCServer doesn't toss the item.
]],
}, -- HOOK_PLAYER_TOSSING_ITEM
}