1
0

Added m_IP to player class and binding to get IP for LUA. (Probably should use m_pState)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@82 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
admin@omencraft.com
2011-11-09 22:17:30 +00:00
parent 9e77db8e3d
commit 18b7563680
6 changed files with 79 additions and 3 deletions

View File

@@ -1078,6 +1078,8 @@ void cClientHandle::Tick(float a_Dt)
World->LockEntities();
m_Player->SetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login.
m_Player->SetIP ( m_pState->Socket.GetIPString() );
cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::E_PLUGIN_PLAYER_SPAWN, 1, m_Player );
// Return a server login packet