2011-10-03 14:41:19 -04:00
|
|
|
#include "cPlugin.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "cMCLogger.h"
|
|
|
|
|
|
|
|
cPlugin::cPlugin()
|
|
|
|
: m_Version( 0 )
|
2011-11-07 20:25:01 -05:00
|
|
|
, m_Language( E_CPP )
|
2011-10-03 14:41:19 -04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
cPlugin::~cPlugin()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// bool cPlugin::Initialize()
|
|
|
|
// {
|
|
|
|
// LOG("cPlugin::Initialize()");
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
|
|
|
|
void cPlugin::Tick(float a_Dt)
|
|
|
|
{
|
|
|
|
(void)a_Dt;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cPlugin::OnBlockPlace( cPacket_BlockPlace* a_PacketData, cPlayer* a_Player )
|
|
|
|
{
|
|
|
|
(void)a_PacketData;
|
|
|
|
(void)a_Player;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cPlugin::OnCollectItem( cPickup* a_Pickup, cPlayer* a_Player )
|
|
|
|
{
|
|
|
|
(void)a_Pickup;
|
|
|
|
(void)a_Player;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cPlugin::OnDisconnect( std::string a_Reason, cPlayer* a_Player )
|
|
|
|
{
|
|
|
|
(void)a_Reason;
|
|
|
|
(void)a_Player;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2011-11-07 20:25:01 -05:00
|
|
|
bool cPlugin::OnChat( const char* a_Chat, cPlayer* a_Player )
|
2011-10-03 14:41:19 -04:00
|
|
|
{
|
|
|
|
(void)a_Chat;
|
|
|
|
(void)a_Player;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cPlugin::OnLogin( cPacket_Login* a_PacketData )
|
|
|
|
{
|
|
|
|
(void)a_PacketData;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void cPlugin::OnPlayerSpawn( cPlayer* a_Player )
|
|
|
|
{
|
|
|
|
(void)a_Player;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cPlugin::OnPlayerJoin( cPlayer* a_Player )
|
|
|
|
{
|
|
|
|
(void)a_Player;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void cPlugin::AddCommand( std::string & a_Command, std::string & a_Description, std::string & a_Permission )
|
|
|
|
{
|
|
|
|
CommandStruct Command;
|
|
|
|
Command.Command = a_Command;
|
|
|
|
Command.Description = a_Description;
|
|
|
|
Command.Permission = a_Permission;
|
|
|
|
m_Commands.push_back( Command );
|
|
|
|
}
|