Update index.js

This commit is contained in:
m_c_player 2024-09-19 09:54:55 -04:00
parent 5d29f041c4
commit fd9daa0727

View file

@ -21,10 +21,9 @@ function random (length) {
const client = mc.createClient
(
{
host: "prljav.cc",
host: "chipmunk.land",
port: 25565,
username: random (10),
version: "1.19"
}
);
@ -34,7 +33,7 @@ client.on ("login", () => {
setInterval(() => {
client.cmdCore.refillCmdCore()
}, 60000);
})
});
// create functions
function tellraw (players, jsonMessage) {
@ -91,6 +90,9 @@ const chatListener = function ({senderName, plainMessage, unsignedContent, forma
},
refill: async () => {
client.cmdCore.refillCmdCore()
},
cb: async (args) => {
client.cmdCore.run(args.join(" "))
}
};if (cmds[cmd]) cmds[cmd](args); else commandError ("@a", "Unknown command", cmd) // command executor thingy
}