fix: 修复pkg不存在的问题
This commit is contained in:
parent
bc6e07cfc8
commit
e97de1f8d0
@ -142,9 +142,9 @@ function download(sender, name) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var pfile = fs.file(__dirname, name + '.js');
|
var pfile = fs.file(__dirname, name + '.js');
|
||||||
console.sender(sender, '§6开始下载插件: §b%s'.format(pkg.name));
|
console.sender(sender, '§6开始下载插件: §b%s'.format(plugin.name));
|
||||||
console.sender(sender, '§6插件下载地址: §b%s'.format(pkg.url));
|
console.sender(sender, '§6插件下载地址: §b%s'.format(plugin.url));
|
||||||
fs.save(pfile, http.get(pkg.url));
|
fs.save(pfile, http.get(plugin.url));
|
||||||
console.sender(sender, '§6插件 §b%s §a下载完毕 开始加载 ...'.format(name));
|
console.sender(sender, '§6插件 §b%s §a下载完毕 开始加载 ...'.format(name));
|
||||||
manager.loadPlugin(pfile);
|
manager.loadPlugin(pfile);
|
||||||
console.sender(sender, '§6插件 §b%s §a安装成功!'.format(name));
|
console.sender(sender, '§6插件 §b%s §a安装成功!'.format(name));
|
||||||
|
Loading…
Reference in New Issue
Block a user