diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-19 21:30:24 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-19 21:30:24 +0100 |
commit | ed7b680d3cb100b6e633573b1422855eb08cd07a (patch) | |
tree | 1c8f930e3fead5e6fdf28dd9e7362eacf51c1aa2 /Plugins/Core/onblockplace.lua | |
parent | Fixed player heads always pointing north (new EntityHeadLook packet) (diff) | |
download | cuberite-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/onblockplace.lua')
-rw-r--r-- | Plugins/Core/onblockplace.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Plugins/Core/onblockplace.lua b/Plugins/Core/onblockplace.lua index 5717d76ca..12b536e7a 100644 --- a/Plugins/Core/onblockplace.lua +++ b/Plugins/Core/onblockplace.lua @@ -3,6 +3,10 @@ function OnBlockPlace( 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
+
local X = Block.m_PosX
local Y = Block.m_PosY
local Z = Block.m_PosZ
|