1.1 --- a/core/systems/PluginSys.cpp Wed May 23 16:58:53 2007 +0000
1.2 +++ b/core/systems/PluginSys.cpp Wed May 23 17:54:45 2007 +0000
1.3 @@ -25,6 +25,8 @@
1.4 #include "ExtensionSys.h"
1.5 #include "sm_srvcmds.h"
1.6 #include "sm_stringutil.h"
1.7 +#include "ConCmdManager.h"
1.8 +#include "PlayerManager.h"
1.9
1.10 CPluginManager g_PluginSys;
1.11 HandleType_t g_PluginType = 0;
1.12 @@ -299,6 +301,21 @@
1.13 if ((err=pFunction->Execute(&result)) != SP_ERROR_NONE)
1.14 {
1.15 SetErrorState(Plugin_Error, "Error detected in plugin startup (see error logs)");
1.16 + } else {
1.17 + if (g_OnMapStarted)
1.18 + {
1.19 + if ((pFunction = m_ctx.base->GetFunctionByName("OnMapStart")) != NULL)
1.20 + {
1.21 + pFunction->Execute(NULL);
1.22 + }
1.23 + }
1.24 + if (g_ConCmds.IsServerCfgDone())
1.25 + {
1.26 + if ((pFunction = m_ctx.base->GetFunctionByName("OnServerCfg")) != NULL)
1.27 + {
1.28 + pFunction->Execute(NULL);
1.29 + }
1.30 + }
1.31 }
1.32 }
1.33