From f94456dd3eccc65a6f304d4b804ca09a67fa6008 Mon Sep 17 00:00:00 2001 From: faketruth Date: Wed, 5 Sep 2012 20:30:27 +0000 Subject: Added the possibility of reserved player slots by implementing the HandleHandshake hook! More info: http://forum.mc-server.org/showthread.php?tid=555 git-svn-id: http://mc-server.googlecode.com/svn/trunk@836 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source/cPlugin.cpp') diff --git a/source/cPlugin.cpp b/source/cPlugin.cpp index 5fb8057a3..ce66a9655 100644 --- a/source/cPlugin.cpp +++ b/source/cPlugin.cpp @@ -283,6 +283,17 @@ bool cPlugin::OnWeatherChanged(cWorld * a_World) +bool cPlugin::OnHandshake(cClientHandle * a_Client, const AString & a_Username) +{ + UNUSED(a_Client); + UNUSED(a_Username); + return false; +} + + + + + void cPlugin::AddCommand(const AString & a_Command, const AString & a_Description, const AString & a_Permission) { CommandStruct Command; -- cgit v1.2.3