diff options
Diffstat (limited to 'source/Plugin.cpp')
-rw-r--r-- | source/Plugin.cpp | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/source/Plugin.cpp b/source/Plugin.cpp index 2b26ae2cb..491acaa5b 100644 --- a/source/Plugin.cpp +++ b/source/Plugin.cpp @@ -10,10 +10,9 @@ cPlugin::cPlugin( const AString & a_PluginDirectory ) - : m_Version( 0 ) - , m_Language( E_CPP ) - , m_bCanBindCommands( false ) - , m_Directory( a_PluginDirectory ) + : m_Version(0) + , m_Language(E_CPP) + , m_Directory(a_PluginDirectory) { } @@ -126,6 +125,17 @@ bool cPlugin::OnDisconnect(cPlayer * a_Player, const AString & a_Reason) +bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username) +{ + UNUSED(a_Client); + UNUSED(a_Username); + return false; +} + + + + + bool cPlugin::OnKilling(cPawn & a_Victim, cEntity * a_Killer) { UNUSED(a_Victim); @@ -464,10 +474,10 @@ bool cPlugin::OnWeatherChanged(cWorld * a_World) -bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username) +bool cPlugin::HandleCommand(const AStringVector & a_Split, cPlayer * a_Player) { - UNUSED(a_Client); - UNUSED(a_Username); + UNUSED(a_Split); + UNUSED(a_Player); return false; } @@ -475,19 +485,6 @@ bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username) -void cPlugin::AddCommand(const AString & a_Command, const AString & a_Description, const AString & a_Permission) -{ - CommandStruct Command; - Command.Command = a_Command; - Command.Description = a_Description; - Command.Permission = a_Permission; - m_Commands.push_back( Command ); -} - - - - - AString cPlugin::GetLocalDirectory(void) const { return std::string("Plugins/") + m_Directory; |