diff options
author | Mike Hunsinger <mike.hunsinger@gmail.com> | 2014-01-23 08:27:39 +0100 |
---|---|---|
committer | Mike Hunsinger <mike.hunsinger@gmail.com> | 2014-01-23 08:27:39 +0100 |
commit | 41b05416c75b9cbe31406f04b58b5da9892872f8 (patch) | |
tree | 0c592551b36871ae695f3bc5396fc92e5701f6b8 /MCServer/Plugins/APIDump/Hooks | |
parent | Fix a crash but somewhere... (diff) | |
download | cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.gz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.bz2 cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.lz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.xz cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.tar.zst cuberite-41b05416c75b9cbe31406f04b58b5da9892872f8.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua | 7 |
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..2b65294ef 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 } |