1
0
cuberite-2a/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua
madmaxoft@gmail.com 78462062f3 ProtectionAreas: Added cStorage initialization
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1559 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-06-06 17:10:45 +00:00

34 lines
742 B
Lua

-- ProtectionAreas.lua
-- Defines the main plugin entrypoint
--- Prefix for all messages logged to the server console
PluginPrefix = "ProtectionAreas: ";
--- Called by MCS when the plugin loads
-- Returns true if initialization successful, false otherwise
function Initialize(a_Plugin)
a_Plugin:SetName("ProtectionAreas");
a_Plugin:SetVersion(1);
if (not(InitializeStorage())) then
LOGWARNING(PluginPrefix .. "failed to initialize Storage, plugin is disabled");
return false;
end
InitializeHooks(a_Plugin);
InitializeCommandHandlers();
-- TODO: We might be reloading, so there may be players already present in the server
-- Reload areas for all present players
return true;
end