From e97de1f8d06fa9a3032dbf02cdced4d1bfe7a8cc Mon Sep 17 00:00:00 2001 From: coding Date: Wed, 16 May 2018 16:57:06 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dpkg=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/plugins/MiaoScriptPackageManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/plugins/MiaoScriptPackageManager.js b/src/main/resources/plugins/MiaoScriptPackageManager.js index ff18c76..7ec0266 100644 --- a/src/main/resources/plugins/MiaoScriptPackageManager.js +++ b/src/main/resources/plugins/MiaoScriptPackageManager.js @@ -142,9 +142,9 @@ function download(sender, name) { return; } var pfile = fs.file(__dirname, name + '.js'); - console.sender(sender, '§6开始下载插件: §b%s'.format(pkg.name)); - console.sender(sender, '§6插件下载地址: §b%s'.format(pkg.url)); - fs.save(pfile, http.get(pkg.url)); + console.sender(sender, '§6开始下载插件: §b%s'.format(plugin.name)); + console.sender(sender, '§6插件下载地址: §b%s'.format(plugin.url)); + fs.save(pfile, http.get(plugin.url)); console.sender(sender, '§6插件 §b%s §a下载完毕 开始加载 ...'.format(name)); manager.loadPlugin(pfile); console.sender(sender, '§6插件 §b%s §a安装成功!'.format(name));