added client checking for client only mods
This commit is contained in:
parent
5e7b7bd03c
commit
4818b27aec
5
main.js
5
main.js
@ -16,8 +16,13 @@ modList.forEach((ele, idx, arr) => {
|
|||||||
let modinfo = {
|
let modinfo = {
|
||||||
modName: "",
|
modName: "",
|
||||||
link: link
|
link: link
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (link == "client"){
|
||||||
|
modinfo.modName = "*" + ele;
|
||||||
|
return;
|
||||||
|
}
|
||||||
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition " + link).toString('utf-8'); //change dir and download mod
|
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition " + link).toString('utf-8'); //change dir and download mod
|
||||||
console.log(output);
|
console.log(output);
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user