Update index.js
This commit is contained in:
parent
ede82bcba4
commit
d9d09b86d5
1 changed files with 10 additions and 6 deletions
16
index.js
16
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 }) => {
|
||||
|
|
Loading…
Reference in a new issue