diff --git a/src/bot.js b/src/bot.js index b901797..42f4577 100644 --- a/src/bot.js +++ b/src/bot.js @@ -38,7 +38,7 @@ class Bot { bot.emit("packet." + meta.name, data); }); - client.on("login", (data) => { + client.once("login", (data) => { bot.uuid = client.uuid; bot.username = client.username; bot.loggedIn = true; @@ -103,7 +103,7 @@ class Bot { process.on("uncaughtException", (e) => { //console.log('meow') - // console.warn(`${e.stack}`); + console.warn(`${e.stack}`); }); diff --git a/src/data/info.json b/src/data/info.json index df57961..7b89622 100644 --- a/src/data/info.json +++ b/src/data/info.json @@ -1,7 +1,7 @@ { "buildstring": { - "build": "3350", + "build": "3355", "codename": "ยง4Reignite", - "version": "v8.0.0-beta" + "version": "v8.0.0" } } diff --git a/src/modules/registry.js b/src/modules/registry.js index 7566c2b..b4e28a3 100644 --- a/src/modules/registry.js +++ b/src/modules/registry.js @@ -3,7 +3,7 @@ const createRegistry = require("prismarine-registry"); class registry { constructor(context) { const bot = context.bot; - bot.on("packet.login", (packet) => { + bot.once("packet.login", (packet) => { bot.registry = createRegistry(bot._client.version); bot.registry.language = require("../data/language.json"); bot.emit("registry_ready", bot.registry); diff --git a/src/selfcare/extras/username.js b/src/selfcare/extras/username.js index 136c2df..52bd908 100644 --- a/src/selfcare/extras/username.js +++ b/src/selfcare/extras/username.js @@ -6,7 +6,6 @@ class username { bot.on('player_info', (data) => { if (data.uuid === bot.uuid) { - console.log(data) if (data.player.name !== bot.username) bot.selfcare.username = true; else bot.selfcare.username = false }