/// <summary> /// 载入 /// </summary> public void load() { try { MethodInfo onEnable = this.Type.GetMethod("onEnable"); ServerPluginLoadArg arguments = new ServerPluginLoadArg(this.Info); //注册Event if (PluginLoadEvent != null) { PluginLoadEvent(this, arguments); if (arguments.isCanceled()) { return; } } //执行插件 onEnable.Invoke(this.Instance, null); } catch (Exception ex) { Console.Out.println(ex.ToString()); } }