mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-11-29 13:45:38 -05:00
v8.0.0 Build: 3355
This commit is contained in:
+2
-2
@@ -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}`);
|
||||
});
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"buildstring": {
|
||||
"build": "3350",
|
||||
"build": "3355",
|
||||
"codename": "§4Reignite",
|
||||
"version": "v8.0.0-beta"
|
||||
"version": "v8.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user