1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

allow Kekno to run with sv_running not returning anything :upside_down:

make sure script plugins output correct errors instead of being swallowed
prevent webfront error when webfront tab is left open on a server no longer being modified
This commit is contained in:
RaidMax
2020-02-01 12:27:14 -06:00
parent 25fdcd29d5
commit 3de5ce9ac0
9 changed files with 131 additions and 146 deletions

View File

@ -256,9 +256,25 @@ namespace IW4MAdmin.Application
if (plugin is ScriptPlugin scriptPlugin)
{
await scriptPlugin.Initialize(this);
scriptPlugin.Watcher.Changed += async (sender, e) =>
{
try
{
await scriptPlugin.Initialize(this);
}
catch (Exception ex)
{
Logger.WriteError(Utilities.CurrentLocalization.LocalizationIndex["PLUGIN_IMPORTER_ERROR"].FormatExt(scriptPlugin.Name));
Logger.WriteDebug(ex.Message);
}
};
}
await plugin.OnLoadAsync(this);
else
{
await plugin.OnLoadAsync(this);
}
}
catch (Exception ex)