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:
@ -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)
|
||||
|
Reference in New Issue
Block a user