Pocketmine init #79

Merged
Sirherobrine23 merged 10 commits from pocketMine into main 2021-04-10 03:23:21 +00:00
Showing only changes of commit 80f7ec3a3f - Show all commits

View File

@ -4,7 +4,7 @@ const {exec, execSync} = require("child_process");
const fs = require("fs") const fs = require("fs")
const path = require("path") const path = require("path")
const {CheckBan} = require("./check"); const {CheckBan} = require("./check");
const { resolve, join } = require("path"); const { resolve } = require("path");
const commandExists = require("command-exists").sync const commandExists = require("command-exists").sync
module.exports.start = () => { module.exports.start = () => {
@ -115,7 +115,7 @@ module.exports.start = () => {
require("open")("http://docs.sirherobrine23.com/bds_maneger_api_java#Linux"); require("open")("http://docs.sirherobrine23.com/bds_maneger_api_java#Linux");
console.log("http://docs.sirherobrine23.com/bds_maneger_api_java#Linux") console.log("http://docs.sirherobrine23.com/bds_maneger_api_java#Linux")
} else { } else {
require("open")("http://docs.sirherobrine23.com/bds_maneger_api_java"); require("open")("http://docs.sirherobrine23.com/bds_maneger_api_java#MacOS");
console.log("http://docs.sirherobrine23.com/scripts/_java") console.log("http://docs.sirherobrine23.com/scripts/_java")
} }
} }
@ -133,7 +133,7 @@ module.exports.start = () => {
} }
else throw Error("Reinstall Pocketmine-MP, PHP binaries not found") else throw Error("Reinstall Pocketmine-MP, PHP binaries not found")
console.log(childPorcessEnv.PATH); console.log(childPorcessEnv.PATH);
start_server = exec(`php ${join(bds.bds_dir_pocketmine, "PocketMine-MP.phar")}`, {env: { start_server = exec("php ./PocketMine-MP.phar", {env: {
...childPorcessEnv ...childPorcessEnv
}, cwd: bds.bds_dir_pocketmine}); }, cwd: bds.bds_dir_pocketmine});
} else throw Error("") } else throw Error("")