diff options
author | madmaxoft <github@xoft.cz> | 2014-01-25 15:37:00 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-25 15:37:00 +0100 |
commit | a2dfb2853718cc8bf73b954e5b678c12d93c815c (patch) | |
tree | b793ef13c8793cf4943659d75fcbe10cb4074daf /MCServer | |
parent | Removed unnecessary define (diff) | |
parent | Comm logging is available in both Debug and Release modes. (diff) | |
download | cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar.gz cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar.bz2 cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar.lz cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar.xz cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.tar.zst cuberite-a2dfb2853718cc8bf73b954e5b678c12d93c815c.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/.gitignore | 1 | ||||
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua | 7 | ||||
m--------- | MCServer/Plugins/Core | 0 |
3 files changed, 5 insertions, 3 deletions
diff --git a/MCServer/.gitignore b/MCServer/.gitignore index c18dd7a67..e3aebbf92 100644 --- a/MCServer/.gitignore +++ b/MCServer/.gitignore @@ -4,6 +4,7 @@ *.lib *.ini MCServer +CommLogs/ logs players world* diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerTossingItem.lua index 85c943721..82d5bb390 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 } diff --git a/MCServer/Plugins/Core b/MCServer/Plugins/Core -Subproject 759cf48ba3f1409e6d7b60cb821ee17e589bdef +Subproject 5fe3662a8719f79cb2ca0a16150c716a3c5eb19 |