Update Platforms #390
@ -8,7 +8,6 @@ export default async function pocketmineTest() {
|
||||
// Run Server
|
||||
const server = await pocketmine.server.startServer();
|
||||
server.server.once("started", () => console.log("Server started"));
|
||||
server.commands.execCommand("eng").execCommand("n")
|
||||
await new Promise((resolve, reject) => {
|
||||
server.server.once("started", resolve);
|
||||
server.server.once("closed", resolve);
|
||||
|
@ -21,7 +21,7 @@ export async function startServer(): Promise<BdsSession> {
|
||||
Process.command = path.resolve(ServerPath, "bin/bin/php");
|
||||
await child_process.runAsync("chmod", ["a+x", Process.command]);
|
||||
}
|
||||
Process.args.push(path.join(ServerPath, "PocketMine.phar"));
|
||||
Process.args.push(path.join(ServerPath, "PocketMine.phar"), "--no-wizard", "--enable-ansi");
|
||||
|
||||
// Start Server
|
||||
const serverEvents = new events();
|
||||
|
Reference in New Issue
Block a user