summaryrefslogblamecommitdiffstats
path: root/Plugins/Core/onblockdig.lua
blob: 0fe671ad61f266a59fbc7b20a022a8d9ada1ff4e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                       
function OnBlockDig( Block, Player )

	-- dont check if the direction is in the air
	if Block.m_Direction ~= -1 then

		if( Player:HasPermission("core.build") == false ) then
			return true
		end
	end
	return false
end