From 6bc916fc3ccb63ebded52c42b8f9daa3627c6eb9 Mon Sep 17 00:00:00 2001 From: faketruth Date: Sat, 8 Sep 2012 20:49:29 +0000 Subject: Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder. Core now stores banned players and whitelist data in its own directory git-svn-id: http://mc-server.googlecode.com/svn/trunk@850 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin_NewLua.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/cPlugin_NewLua.h') diff --git a/source/cPlugin_NewLua.h b/source/cPlugin_NewLua.h index 01fefde0a..082b2a82b 100644 --- a/source/cPlugin_NewLua.h +++ b/source/cPlugin_NewLua.h @@ -48,6 +48,7 @@ public: //tolua_export virtual bool OnHandshake (cClientHandle * a_Client, const AString & a_Username) override; const AString & GetDirectory(void) const {return m_Directory; } + AString GetLocalDirectory(void) const; //tolua_export virtual void SetName( const AString & a_Name ) override { cPlugin::SetName(a_Name); } -- cgit v1.2.3