diff options
Diffstat (limited to 'Plugins/Core/onblockdig.lua')
-rw-r--r-- | Plugins/Core/onblockdig.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Plugins/Core/onblockdig.lua b/Plugins/Core/onblockdig.lua new file mode 100644 index 000000000..0fe671ad6 --- /dev/null +++ b/Plugins/Core/onblockdig.lua @@ -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
\ No newline at end of file |