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