mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 15:42:13 +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) {
|
||||
let options = {
|
||||
shell: true,
|
||||
cwd: "~/minecraft/",
|
||||
cwd: "/root/minecraft/",
|
||||
};
|
||||
const minecraft = spawn(
|
||||
"java",
|
||||
["-Xmx4096M", "-Xms1024M", "-jar", "server.jar", "-nogui"],
|
||||
options
|
||||
);
|
||||
minecraftin = minecraft;
|
||||
minecraft.stdout.on("data", (data) => {
|
||||
try {
|
||||
channel.send(`${data}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue