1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 08:57:44 +00:00

Also subscribe fcmanager to the login event

This commit is contained in:
Mordred 2023-02-21 14:32:52 +01:00
parent 48c2825df8
commit 3cd60e0633

View file

@ -313,6 +313,7 @@ void WorldServer::run( int32_t argc, char* argv[] )
Common::Service< Manager::TaskMgr >::set( taskMgr );
dispatcher->subscribe( Common::EventSystem::LoginEvent::descriptor, std::bind( &Manager::PlayerMgr::handleEvent, pPlayerMgr, std::placeholders::_1 ) );
dispatcher->subscribe( Common::EventSystem::LoginEvent::descriptor, std::bind( &Manager::FreeCompanyMgr::handleEvent, pFcMgr, std::placeholders::_1 ) );
Logger::info( "World server running on {0}:{1}", m_ip, m_port );