mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 09:00:58 -04:00
[Server] Fill query information about plugins
This commit is contained in:
parent
87c172186e
commit
250c199188
@ -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…
x
Reference in New Issue
Block a user