public void ActivatePlugins(PluginDescription plugin) { HandleMessage(string.Format("Initialisiere ausgewähltes Plugin {0}", plugin.Name)); Logger.Debug("Beginne Plugin {0} mit Abhänhgigkeiten zu aktivieren", plugin.Name); _loader.ActivatePlugins(plugin); Logger.Debug("Plugin {0} mit Abhänhgigkeiten komplett aktiviert", plugin.Name); }
internal SynapseController() { SynapseVersion.Init(); if (StartupArgs.Args.Any(x => x.Equals("-nosynapse", StringComparison.OrdinalIgnoreCase))) { Server.Logger.Warn("Server started with -nosynapse argument! Synapse will not be loaded"); return; } PatchMethods(); try { Server.Configs.Init(); Server.PermissionHandler.Init(); Server.RoleManager.Init(); Server.Schematic.Init(); CommandHandlers.RegisterSynapseCommands(); PluginLoader.ActivatePlugins(); } catch (Exception e) { Server.Logger.Error($"Error while Initialising Synapse! Please fix the Issue and restart your Server:\n{e}"); return; } Server.Logger.Info("Synapse is now ready!"); }
internal SynapseController() { CustomNetworkManager.Modded = true; BuildInfoCommand.ModDescription = "A heavily modded server software using extensive runtime patching to make development faster and the usage more accessible to end-users"; PatchMethods(); Server.Configs.Init(); Server.PermissionHandler.Init(); Server.RoleManager.Init(); CommandHandlers.RegisterSynapseCommands(); PluginLoader.ActivatePlugins(); Server.Logger.Info("Synapse is now ready!"); }