1
0
cuberite-2a/Plugins/NewTest/main.lua
faketruth 4e34e438f1 Working on a new plugin design with Lua. While retaining backwards compatibility of course...
In this new design a plugin consists of a folder with Lua files, this should enable plugin developers to keep things separate and have more overview.

git-svn-id: http://mc-server.googlecode.com/svn/trunk@172 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-26 20:39:46 +00:00

17 lines
372 B
Lua

LOGINFO("main.lua!!")
LOOLOL = "12345"
PLUGIN = {}
function Initialize( Plugin )
LOGINFO("Initialize in main.lua")
PLUGIN = Plugin
Plugin:SetName("LOLOL new plugin!")
PluginManager = cRoot:Get():GetPluginManager()
PluginManager:AddHook( Plugin, cPluginManager.E_PLUGIN_TICK )
LOGINFO("Plugin name is: " .. Plugin:GetName() )
return true
end