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:
@@ -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
|
||||
Reference in New Issue
Block a user