1
0
cuberite-2a/MCServer/Plugins/Core/onplayerbreakingblock.lua

10 lines
292 B
Lua
Raw Normal View History

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