2012-08-18 05:56:28 -04:00
|
|
|
function OnBlockDig(Player, BlockX, BlockY, BlockZ, BlockFace, Status, OldBlockType, OldBlockMeta)
|
2012-03-19 16:30:24 -04:00
|
|
|
-- dont check if the direction is in the air
|
2012-08-18 05:56:28 -04:00
|
|
|
if (BlockFace ~= -1) then
|
2012-03-19 16:30:24 -04:00
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
if (Player:HasPermission("core.build") == false) then
|
2012-03-19 16:30:24 -04:00
|
|
|
return true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end
|