752057fb1b
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1140 0a769ca7-a7f5-676a-18bf-c427514a06d6
10 lines
292 B
Lua
10 lines
292 B
Lua
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 |