mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
checks what the server output is
This commit is contained in:
parent
8886cc5344
commit
f71a27a331
1 changed files with 2 additions and 1 deletions
|
@ -255,7 +255,7 @@ describe("client", function() {
|
|||
return done(new Error("The file "+MC_SERVER_JAR+" doesn't exist."));
|
||||
}
|
||||
|
||||
mcServer = spawn('java', [ '-Dlog4j.configurationFile=server/server_debug.xml', '-jar', MC_SERVER_JAR, 'nogui'], {
|
||||
mcServer = spawn('java', [ '-Dlog4j.configurationFile=server/server_debug.xml', '-jar', MC_SERVER_JAR, 'nogui'], {
|
||||
stdio: 'pipe',
|
||||
cwd: MC_SERVER_PATH,
|
||||
});
|
||||
|
@ -266,6 +266,7 @@ describe("client", function() {
|
|||
mcServer.stdout.on('data', onData);
|
||||
mcServer.stderr.on('data', onData);
|
||||
function onData(data) {
|
||||
console.log(data);
|
||||
buffer += data;
|
||||
var lines = buffer.split("\n");
|
||||
var len = lines.length - 1;
|
||||
|
|
Loading…
Reference in a new issue