1
0
cuberite-2a/source/cWebPlugin.cpp
faketruth 386d58b586 MCServer c++ source files
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-03 18:41:19 +00:00

22 lines
513 B
C++

#include "cWebPlugin.h"
#include "cWebAdmin.h"
#include "cServer.h"
#include "cMCLogger.h"
#include "cRoot.h"
#include "MemoryLeak.h"
cWebPlugin::cWebPlugin( lua_State* L )
{
LOG("cWebPlugin::cWebPlugin()");
m_LuaState = L;
cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
if( WebAdmin ) WebAdmin->AddPlugin( this );
}
cWebPlugin::~cWebPlugin()
{
LOG("~cWebPlugin::cWebPlugin()");
cWebAdmin* WebAdmin = cRoot::Get()->GetWebAdmin();
if( WebAdmin ) WebAdmin->RemovePlugin( this );
}