summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-08-26 10:58:51 +0200
committerMattes D <github@xoft.cz>2015-09-05 22:01:21 +0200
commitdac97826f7d0c9b9135c1a08c4d5f16b61494bd1 (patch)
treeec17a9703fe734956e4f151cb5306befc4fd7571 /MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua
parentMerge pull request #2459 from cuberite/fixes (diff)
downloadcuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.gz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.bz2
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.lz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.xz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.zst
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua36
1 files changed, 0 insertions, 36 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua
deleted file mode 100644
index e718c5d97..000000000
--- a/MCServer/Plugins/APIDump/Hooks/OnPlayerBrokenBlock.lua
+++ /dev/null
@@ -1,36 +0,0 @@
-return
-{
- HOOK_PLAYER_BROKEN_BLOCK =
- {
- CalledWhen = "After a player has broken a block. Notification only.",
- DefaultFnName = "OnPlayerBrokenBlock", -- also used as pagename
- Desc = [[
- This function is called after a {{cPlayer|player}} breaks a block. The block is already removed
- from the {{cWorld|world}} and {{cPickup|pickups}} have been spawned. To get the world in which the
- block has been dug, use the {{cPlayer}}:GetWorld() function.</p>
- <p>
- See also the {{OnPlayerBreakingBlock|HOOK_PLAYER_BREAKING_BLOCK}} hook for a similar hook called
- before the block is broken. To intercept the creation of pickups, see the
- {{OnBlockToPickups|HOOK_BLOCK_TO_PICKUPS}} hook.
- ]],
- Params =
- {
- { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who broke the block" },
- { Name = "BlockX", Type = "number", Notes = "X-coord of the block" },
- { Name = "BlockY", Type = "number", Notes = "Y-coord of the block" },
- { Name = "BlockZ", Type = "number", Notes = "Z-coord of the block" },
- { Name = "BlockFace", Type = "number", Notes = "Face of the block upon which the player interacted. One of the BLOCK_FACE_ constants" },
- { Name = "BlockType", Type = "BLOCKTYPE", Notes = "The block type of the block" },
- { Name = "BlockMeta", Type = "NIBBLETYPE", Notes = "The block meta of the block" },
- },
- Returns = [[
- If the function returns false or no value, the next plugin's callback is called. If the function
- returns true, no other callback is called for this event.
- ]],
- }, -- HOOK_PLAYER_BROKEN_BLOCK
-}
-
-
-
-
-