4e34e438f1
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
17 lines
372 B
Lua
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 |