mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Remove old debug code
This commit is contained in:
parent
0a4b365242
commit
b7dd1ba04e
@ -80,7 +80,6 @@ function joinServer(username, serverId, accessToken, selectedProfile, cb) {
|
|||||||
function validateSession(username, serverId, cb) {
|
function validateSession(username, serverId, cb) {
|
||||||
superagent.get("https://sessionserver.mojang.com/session/minecraft/hasJoined?username=" + username + "&serverId=" + serverId)
|
superagent.get("https://sessionserver.mojang.com/session/minecraft/hasJoined?username=" + username + "&serverId=" + serverId)
|
||||||
.end(function(resp) {
|
.end(function(resp) {
|
||||||
console.log(resp.body);
|
|
||||||
if (resp.ok) {
|
if (resp.ok) {
|
||||||
if ("id" in resp.body) {
|
if ("id" in resp.body) {
|
||||||
cb(null, resp.body.id);
|
cb(null, resp.body.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user