====== OnPlayerPlacedBlock hook callback function ======
OnPlayerPlacedBlock is called after a player has placed a block in the world. The block is already added to the world and the corresponding item removed from player's inventory.

Use the [[API:cPlayer|cPlayer]]:GetWorld() function to get the world to which the block belongs.

===== Function signature =====
<code lua>
function OnPlayerPlacedBlock(Player, BlockX, BlockY, BlockZ, BlockFace, CursorX, CursorY, CursorZ, BlockType, BlockMeta)
</code>
Parameters:
| Player | [[API:cPlayer|cPlayer]] | The player who placed the block |
| BlockX | number | X-coord of the placed block |
| BlockY | number | Y-coord of the placed block |
| BlockZ | number | Z-coord of the placed block |
| BlockFace | number | Face of the existing block with which the client interacted to place this block |
| CursorX | number | X-coord of the cursor within the block face |
| CursorY | number | Y-coord of the cursor within the block face |
| CursorZ | number | Z-coord of the cursor within the block face |
| BlockType | BLOCKTYPE | Block type of the placed block |
| BlockMeta | NIBBLETYPE | Block meta of the placed block |

===== Return values =====
If this function returns false or no value, MCServer calls other plugins with the same event. If this function returns true, no other plugin is called for this event.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_PLAYER_PLACED_BLOCK]]
<code lua>
PluginManager = cPluginManager:GetPluginManager();
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_PLACED_BLOCK);
</code>