summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/sTick/onblockplace.lua
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-16 10:20:45 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-16 10:20:45 +0200
commitcda079f83b74a0ec3a2ceff482f91676f654977e (patch)
tree650dd7c90f010af697720e30f5db3d5e58ff0fbe /MCServer/Plugins/sTick/onblockplace.lua
parentCore: fixed /help and /pluginlist (diff)
downloadcuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar.gz
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar.bz2
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar.lz
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar.xz
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.tar.zst
cuberite-cda079f83b74a0ec3a2ceff482f91676f654977e.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/sTick/onblockplace.lua19
1 files changed, 0 insertions, 19 deletions
diff --git a/MCServer/Plugins/sTick/onblockplace.lua b/MCServer/Plugins/sTick/onblockplace.lua
deleted file mode 100644
index 6bc2ce46a..000000000
--- a/MCServer/Plugins/sTick/onblockplace.lua
+++ /dev/null
@@ -1,19 +0,0 @@
-function OnBlockPlace(Player, BlockX, BlockY, BlockZ, BlockFace, HeldItem)
-
- -- dont check if the direction is in the air
- if BlockFace == BLOCK_FACE_NONE then
- return false
- end
-
- if (HeldItem.m_ItemType ~= 280) then
- -- not a Stick of Ticking
- return false
- end
-
- LOG("Setting next block tick to {" .. BlockX .. ", " .. BlockY .. ", " .. BlockZ .. "}")
-
- Player:GetWorld():SetNextBlockTick(BlockX, BlockY, BlockZ);
-
- return true
-
-end \ No newline at end of file