this code is a total mess. you should better delete it and hope noone will ever find it again.
The method u are seeking is onBlockPlaced, it gives you an EntityLivingBase where u can get the players name from. If u call setBlockUnbreakable u will set ALL of your blocks unbreakable, because the Block class is for EVERY SINGE BLOCK of that block placed. if you want them to be different you need to use a TileEntity
- If setBlockUnbreakable it set box all. Should what used instead ?
- I use TileEntity in how to write ?