====== Plugin:OnBlockPlace ======
The OnBlockPlace function is called when a player attempts to place a block.

===== Parameters =====
OnBlockPlace has two parameters: [[api:cPacket_BlockPlace | BlockPlace packet]] and [[api:cPlayer | cPlayer ]]
<code lua>
function OnBlockPlace( PacketData, Player )

end
</code>

===== Return Values =====
The OnBlockPlace callback expects you to return a boolean value. Returning true means you override default behaviour and therefore prevent a block from being placed. It will also prevent other plugins from receiving this callback. Returning false will let the server go on with it's usual business and other plugins will receive the callback.

===== Register Callback =====
To register your plugin for a callback on this function use the hook [[api:plugin:hooks | HOOK_BLOCK_PLACE]]
<code lua>
PluginManager = cPluginManager:GetPluginManager()
PluginManager:AddHook( Plugin, cPluginManager.HOOK_BLOCK_PLACE )
</code>