Update index.js
This commit is contained in:
parent
5d29f041c4
commit
fd9daa0727
1 changed files with 5 additions and 3 deletions
8
index.js
8
index.js
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue