05-31-2012, 09:00 AM
Yes, use E_PLUGIN_BLOCK_PLACE.
And yes you can get the currently holding item from the player's inventory.
http://mc-server.org/wiki/doku.php?id=api:cinventory
cPlayer:GetInventory():GetEquippedItem()
This gives you a cItem object http://mc-server.org/wiki/doku.php?id=api:citem
And yes you can get the currently holding item from the player's inventory.
http://mc-server.org/wiki/doku.php?id=api:cinventory
cPlayer:GetInventory():GetEquippedItem()
This gives you a cItem object http://mc-server.org/wiki/doku.php?id=api:citem