diff --git a/core/sourcemm_api.cpp b/core/sourcemm_api.cpp index 15a679a4..938f80c0 100644 --- a/core/sourcemm_api.cpp +++ b/core/sourcemm_api.cpp @@ -52,6 +52,7 @@ IPlayerInfoManager *playerinfo = NULL; IBaseFileSystem *basefilesystem = NULL; IFileSystem *filesystem = NULL; IEngineSound *enginesound = NULL; +IServerTools *servertools = NULL; IServerPluginHelpers *serverpluginhelpers = NULL; IServerPluginCallbacks *vsp_interface = NULL; int vsp_version = 0; @@ -71,6 +72,7 @@ bool SourceMod_Core::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen GET_V_IFACE_CURRENT(GetFileSystemFactory, basefilesystem, IBaseFileSystem, BASEFILESYSTEM_INTERFACE_VERSION); GET_V_IFACE_CURRENT(GetFileSystemFactory, filesystem, IFileSystem, FILESYSTEM_INTERFACE_VERSION); GET_V_IFACE_CURRENT(GetEngineFactory, enginesound, IEngineSound, IENGINESOUND_SERVER_INTERFACE_VERSION); + GET_V_IFACE_CURRENT(GetServerFactory, servertools, IServerTools, VSERVERTOOLS_INTERFACE_VERSION); #if SOURCE_ENGINE != SE_DOTA GET_V_IFACE_CURRENT(GetEngineFactory, serverpluginhelpers, IServerPluginHelpers, INTERFACEVERSION_ISERVERPLUGINHELPERS); #endif diff --git a/core/sourcemm_api.h b/core/sourcemm_api.h index cea9c8b9..43ad069b 100644 --- a/core/sourcemm_api.h +++ b/core/sourcemm_api.h @@ -50,6 +50,7 @@ #include #include #include +#include #ifndef METAMOD_PLAPI_VERSION #include @@ -103,6 +104,7 @@ extern IPlayerInfoManager *playerinfo; extern IBaseFileSystem *basefilesystem; extern IFileSystem *filesystem; extern IEngineSound *enginesound; +extern IServerTools *servertools; extern IServerPluginHelpers *serverpluginhelpers; extern IServerPluginCallbacks *vsp_interface; extern int vsp_version;