internal void ForceStop(Plugin plugin) { PluginDomain domain = GetDomain(plugin); if (domain != null) { domain.Stop(); } else { Bridge.Logger.Fatal("No domain found for plugin {ID}!", plugin.Meta.Id); } }
public void Restart(Plugin plugin) { PluginDomain domain = GetDomain(plugin); if (domain != null) { domain.Stop(false); domain.Initialize(); if (domain.Plugin.State == PluginState.Failed) { return; } domain.Start(); } else { Bridge.Logger.Fatal("No domain found for plugin {ID}!", plugin.Meta.Id); } }