From ed7b680d3cb100b6e633573b1422855eb08cd07a Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 19 Mar 2012 20:30:24 +0000 Subject: 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 --- Plugins/Core/onblockdig.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Plugins/Core/onblockdig.lua (limited to 'Plugins/Core/onblockdig.lua') 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 -- cgit v1.2.3