From 25419343baa24f6c670f116b4b02e3004de3ad6c Mon Sep 17 00:00:00 2001 From: OverJT Date: Sun, 7 Sep 2014 20:50:40 -0500 Subject: [PATCH] Fixed uuid --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5796a9e..dd31c77 100644 --- a/index.js +++ b/index.js @@ -187,7 +187,11 @@ function createServer(options) { } function loginClient() { - client.write(0x02, {uuid: (client.uuid || 0).toString(10), username: client.username}); + var isException = !!server.onlineModeExceptions[client.username.toLowerCase()]; + if (onlineMode == false || isException) { + client.uuid = "0-0-0-0-0"; + } + client.write(0x02, {uuid: (client.uuid).toString(10), username: client.username}); client.state = states.PLAY; loggedIn = true; startKeepAlive();