summaryrefslogblamecommitdiffstats
path: root/MCServer/Plugins/Core/onplayerbreakingblock.lua
blob: fc7d5897ddeaaf6edc3103284768ca54e8708e3c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                                                              
                                                     
                                  
 
                                                                      




                                    
function OnPlayerBreakingBlock(Player, BlockX, BlockY, BlockZ, BlockFace, Status, OldBlockType, OldBlockMeta)
	-- dont check if the direction is in the air
	if (BlockFace ~= -1) then

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