mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
awadw
This commit is contained in:
parent
57645e2e09
commit
472e3b7792
1 changed files with 1 additions and 2 deletions
|
|
@ -17,14 +17,13 @@ module.exports = {
|
||||||
function spawnMC(channel) {
|
function spawnMC(channel) {
|
||||||
let options = {
|
let options = {
|
||||||
shell: true,
|
shell: true,
|
||||||
cwd: "~/minecraft/",
|
cwd: "/root/minecraft/",
|
||||||
};
|
};
|
||||||
const minecraft = spawn(
|
const minecraft = spawn(
|
||||||
"java",
|
"java",
|
||||||
["-Xmx4096M", "-Xms1024M", "-jar", "server.jar", "-nogui"],
|
["-Xmx4096M", "-Xms1024M", "-jar", "server.jar", "-nogui"],
|
||||||
options
|
options
|
||||||
);
|
);
|
||||||
minecraftin = minecraft;
|
|
||||||
minecraft.stdout.on("data", (data) => {
|
minecraft.stdout.on("data", (data) => {
|
||||||
try {
|
try {
|
||||||
channel.send(`${data}`);
|
channel.send(`${data}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue