From d9d09b86d5c24d4811f7419cb69fa2b7323236ba Mon Sep 17 00:00:00 2001 From: m_c_player Date: Fri, 11 Oct 2024 22:50:20 -0400 Subject: [PATCH] Update index.js --- index.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 6ecb637..3bc0e98 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const core = require("./core"); const { parseFormatCodes } = require("./pcc"); const config = require("./conf"); - const exploits = require("./exploits"); + // const exploits = require("./exploits.json"); const mc = require('minecraft-protocol'); const { MessageBuilder } = require('prismarine-chat')('1.16'); const registry = require('prismarine-registry')('1.16'); @@ -14,9 +14,9 @@ rl.setMaxListeners(1); // sleep function -async function sleep(ms) { - return new Promise(resolve => setTimeout(resolve, ms)); -} + async function sleep(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); + } // hash functions function createTrustedHash () { @@ -63,7 +63,7 @@ function main () { { host: "chipmunk.land", port: 25565, - username: randomEscape(16), + username: randomEscape(10), version: "1.20" } ); @@ -80,7 +80,11 @@ function main () { await sleep(200); client.chat(`/commandspy:commandspy on`); }); - + setTimeout(function() { + client.on("pos", () => { + client.cmdCore.refillCmdCore() + }) + }, 1000) // chat logging client.on("playerChat", ({ senderName, plainMessage, unsignedContent, formattedMessage, verified }) => {