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