From 752057fb1b3a71058b5391bde9b0e21d87196539 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 13 Jan 2013 11:10:26 +0000 Subject: Forgotten files for previous merge commit (rev 1139) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1140 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/Core/onplayerbreakingblock.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MCServer/Plugins/Core/onplayerbreakingblock.lua (limited to 'MCServer/Plugins/Core/onplayerbreakingblock.lua') diff --git a/MCServer/Plugins/Core/onplayerbreakingblock.lua b/MCServer/Plugins/Core/onplayerbreakingblock.lua new file mode 100644 index 000000000..fc7d5897d --- /dev/null +++ b/MCServer/Plugins/Core/onplayerbreakingblock.lua @@ -0,0 +1,10 @@ +function OnPlayerBreakingBlock(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 -- cgit v1.2.3