Added core.build permission to Core. Without this permission players are unable to build

git-svn-id: http://mc-server.googlecode.com/svn/trunk@425 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2012-03-19 20:30:24 +00:00
parent 2786ad306a
commit ed7b680d3c
5 changed files with 20 additions and 4 deletions
+11
View File
@@ -0,0 +1,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