summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/sTick
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/sTick/main.lua20
-rw-r--r--MCServer/Plugins/sTick/onblockplace.lua19
2 files changed, 0 insertions, 39 deletions
diff --git a/MCServer/Plugins/sTick/main.lua b/MCServer/Plugins/sTick/main.lua
deleted file mode 100644
index 057cd22d1..000000000
--- a/MCServer/Plugins/sTick/main.lua
+++ /dev/null
@@ -1,20 +0,0 @@
-
--- Global variables
-PLUGIN = {} -- Reference to own plugin object
-
-
-
-
-
-function Initialize(Plugin)
- PLUGIN = Plugin
-
- Plugin:SetName("sTick")
- Plugin:SetVersion(2)
-
- PluginManager = cRoot:Get():GetPluginManager()
- PluginManager:AddHook(Plugin, cPluginManager.E_PLUGIN_BLOCK_PLACE)
-
- LOG("Initialized " .. Plugin:GetName() .. " v." .. Plugin:GetVersion())
- return true
-end \ No newline at end of file
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