mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 22:23:21 -04:00
checks what the server output is
This commit is contained in:
parent
8886cc5344
commit
f71a27a331
@ -266,6 +266,7 @@ describe("client", function() {
|
|||||||
mcServer.stdout.on('data', onData);
|
mcServer.stdout.on('data', onData);
|
||||||
mcServer.stderr.on('data', onData);
|
mcServer.stderr.on('data', onData);
|
||||||
function onData(data) {
|
function onData(data) {
|
||||||
|
console.log(data);
|
||||||
buffer += data;
|
buffer += data;
|
||||||
var lines = buffer.split("\n");
|
var lines = buffer.split("\n");
|
||||||
var len = lines.length - 1;
|
var len = lines.length - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user