forked from mirror/openmw-tes3mp
[Server] Fill query information about plugins
This commit is contained in:
parent
87c172186e
commit
250c199188
1 changed files with 10 additions and 0 deletions
|
@ -504,4 +504,14 @@ void Networking::postInit()
|
|||
{
|
||||
Script::Call<Script::CallbackIdentity("OnServerPostInit")>();
|
||||
samples = getPluginListSample();
|
||||
if(mclient)
|
||||
{
|
||||
for(auto plugin : samples)
|
||||
{
|
||||
if(!plugin.second.empty())
|
||||
mclient->PushPlugin({plugin.first, plugin.second[0]});
|
||||
else
|
||||
mclient->PushPlugin({plugin.first, 0});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue