summaryrefslogtreecommitdiffstats
path: root/source/Plugin.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-01 20:55:42 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-01 20:55:42 +0100
commit019c8b5bc71708e2d895a95757643406f75b4149 (patch)
tree47c5e399e562384a255d5d789d761d8857dff6af /source/Plugin.cpp
parentRenamed HOOK_KILLED to HOOK_KILLING to match naming conventions. (diff)
downloadcuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar.gz
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar.bz2
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar.lz
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar.xz
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.tar.zst
cuberite-019c8b5bc71708e2d895a95757643406f75b4149.zip
Diffstat (limited to '')
-rw-r--r--source/Plugin.cpp37
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;