summaryrefslogtreecommitdiffstats
path: root/Plugins/Core/onblockdig.lua
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 21:30:24 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-19 21:30:24 +0100
commited7b680d3cb100b6e633573b1422855eb08cd07a (patch)
tree1c8f930e3fead5e6fdf28dd9e7362eacf51c1aa2 /Plugins/Core/onblockdig.lua
parentFixed player heads always pointing north (new EntityHeadLook packet) (diff)
downloadcuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar.gz
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar.bz2
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar.lz
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar.xz
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.tar.zst
cuberite-ed7b680d3cb100b6e633573b1422855eb08cd07a.zip
Diffstat (limited to 'Plugins/Core/onblockdig.lua')
-rw-r--r--Plugins/Core/onblockdig.lua11
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