summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-21 16:33:38 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-21 16:33:38 +0200
commit588a2619aac1ac9db1b721d60bbbd8c83c23ebc3 (patch)
tree84e4ceafc597f3322f165124079f62a71d82d41d /source
parentAdded a Release Profiled configuration to Squirrel MSVC2008 project (diff)
downloadcuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar.gz
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar.bz2
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar.lz
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar.xz
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.tar.zst
cuberite-588a2619aac1ac9db1b721d60bbbd8c83c23ebc3.zip
Diffstat (limited to 'source')
-rw-r--r--source/cPluginManager.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/cPluginManager.cpp b/source/cPluginManager.cpp
index eea9f1c01..64f6442ca 100644
--- a/source/cPluginManager.cpp
+++ b/source/cPluginManager.cpp
@@ -396,6 +396,23 @@ bool cPluginManager::CallHook(PluginHook a_Hook, unsigned int a_NumArgs, ...)
}
break;
}
+
+ case HOOK_PLAYER_SPAWN:
+ {
+ if (a_NumArgs != 1)
+ {
+ break;
+ }
+ va_list argptr;
+ va_start( argptr, a_NumArgs);
+ cPlayer * Player = va_arg(argptr, cPlayer *);
+ va_end (argptr);
+ for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
+ {
+ (*itr)->OnPlayerSpawn(Player);
+ }
+ break;
+ }
default:
{