From 78462062f345e4e46b37ea6ee208cea3b2688f34 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 6 Jun 2013 17:10:45 +0000 Subject: ProtectionAreas: Added cStorage initialization git-svn-id: http://mc-server.googlecode.com/svn/trunk@1559 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua') diff --git a/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua b/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua index d816f578f..603b7a87f 100644 --- a/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua +++ b/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua @@ -6,11 +6,23 @@ +--- 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); - InitializeStorage(); + if (not(InitializeStorage())) then + LOGWARNING(PluginPrefix .. "failed to initialize Storage, plugin is disabled"); + return false; + end InitializeHooks(a_Plugin); InitializeCommandHandlers(); -- cgit v1.2.3