summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Handy/handy.lua
diff options
context:
space:
mode:
authortau.tihon@gmail.com <tau.tihon@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-16 15:05:42 +0100
committertau.tihon@gmail.com <tau.tihon@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-16 15:05:42 +0100
commit8c578b28c2d4dae65ffadc9def540dacd21ae9bc (patch)
treec1177212f97595e46b9093d1881a5426352c4af8 /MCServer/Plugins/Handy/handy.lua
parentFixed missing bindings in cPlugin (diff)
downloadcuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar.gz
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar.bz2
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar.lz
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar.xz
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.tar.zst
cuberite-8c578b28c2d4dae65ffadc9def540dacd21ae9bc.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/Handy/handy.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/MCServer/Plugins/Handy/handy.lua b/MCServer/Plugins/Handy/handy.lua
new file mode 100644
index 000000000..c2330abab
--- /dev/null
+++ b/MCServer/Plugins/Handy/handy.lua
@@ -0,0 +1,28 @@
+-- Global variables
+PLUGIN = {} -- Reference to own plugin object
+CHEST_WIDTH = 9
+HANDY_VERSION = 1
+--[[
+
+Handy is a plugin for other plugins. It contain no commands, no hooks, but functions to ease plugins developers' life.
+
+API:
+
+
+TODO:
+1. GetChestSlot wrapper, so it will detect double chest neighbour chest and will be able to access it.
+]]
+
+function Initialize(Plugin)
+ PLUGIN = Plugin
+ PLUGIN:SetName("Handy")
+ PLUGIN:SetVersion(HANDY_VERSION)
+
+ PluginManager = cRoot:Get():GetPluginManager()
+ LOG("Initialized " .. PLUGIN:GetName() .. " v" .. PLUGIN:GetVersion())
+ return true
+end
+
+function OnDisable()
+ LOG(PLUGIN:GetName() .. " v" .. PLUGIN:GetVersion() .. " is shutting down...")
+end \ No newline at end of file