public Plugin(DirectoryInfo directory, string name, string code) { Name = name; Code = code; RootDirectory = directory; Timers = new Dictionary<String, TimedEvent>(); Engine = new JintEngine(); Engine.AllowClr(true); InitGlobals(); Engine.Run(code); try { Engine.CallFunction("On_PluginInit"); } catch { } }