Beispiel #1
0
 /// <summary>
 ///   Start a plugin.
 /// </summary>
 /// <param name = "plugin">The plugin object you wish to start.</param>
 internal PluginManager StartPlugin(Plugin plugin)
 {
     plugin.Start();
     plugin.StartedResetEvent.Set();
     CoreManager.ServerCore.GetStandardOut().PrintNotice("Plugin " + plugin.Name + " has been started.");
     return(this);
 }
Beispiel #2
0
 /// <summary>
 ///   Start a plugin.
 /// </summary>
 /// <param name = "plugin">The plugin object you wish to start.</param>
 internal PluginManager StartPlugin(Plugin plugin)
 {
     EventFirer eventFirer = CoreManager.ServerCore.EventManager.NewEventFirer(plugin);
     plugin.Start(eventFirer);
     plugin.StartedResetEvent.Set();
     CoreManager.ServerCore.ConsoleManager.Notice("Plugin Manager", CoreManager.ServerCore.StringLocale.GetString("CORE:PLUGIN_STARTED", plugin.Name));
     return this;
 }
Beispiel #3
0
        /// <summary>
        ///   Start a plugin.
        /// </summary>
        /// <param name = "plugin">The plugin object you wish to start.</param>
        internal PluginManager StartPlugin(Plugin plugin)
        {
            EventFirer eventFirer = CoreManager.ServerCore.EventManager.NewEventFirer(plugin);

            plugin.Start(eventFirer);
            plugin.StartedResetEvent.Set();
            CoreManager.ServerCore.ConsoleManager.Notice("Plugin Manager", CoreManager.ServerCore.StringLocale.GetString("CORE:PLUGIN_STARTED", plugin.Name));
            return(this);
        }
Beispiel #4
0
 /// <summary>
 /// Load and start a plugin with a relative path to the plugin directory.
 /// </summary>
 /// <param name="Filename">The filename of the plugin MINUS THE .dll!!</param>
 public PluginManager StartPlugin(Plugin Plugin)
 {
     if (!Plugin.IsRunning())
     {
         Plugin.Start();
         Plugin.fIsRunning = true;
         CoreManager.GetCore().GetStandardOut().PrintNotice("Plugin " + Plugin.GetName() + " has been started.");
     }
     return this;
 }
Beispiel #5
0
 /// <summary>
 ///   Start a plugin.
 /// </summary>
 /// <param name = "plugin">The plugin object you wish to start.</param>
 internal PluginManager StartPlugin(Plugin plugin)
 {
     plugin.Start();
     plugin.StartedResetEvent.Set();
     CoreManager.ServerCore.GetStandardOut().PrintNotice("Plugin " + plugin.Name + " has been started.");
     return this;
 }