change hash delay + core customname "fix"

This commit is contained in:
ChomeNS 2022-11-18 14:07:25 +07:00
parent 816aa16ec5
commit 7055c5e0d7
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ function inject(bot, dcclient, config) {
},
async loopPlace() {
try {
const fillCommand = `/minecraft:fill ${core.start.x} ${core.start.y} ${core.start.z} ${core.end.x} ${core.end.y} ${core.end.z} command_block${config.core.customName ? `{CustomName:'${JSON.stringify(config.core.customName)}'}` : ''}`;
const fillCommand = `/minecraft:fill ${core.start.x} ${core.start.y} ${core.start.z} ${core.end.x} ${core.end.y} ${core.end.z} command_block{CustomName:'${JSON.stringify(config.core.customName)}'}`;
const location = {x: Math.floor(bot.position.x), y: Math.floor(bot.position.y) - 1, z: Math.floor(bot.position.z)};
bot.write('set_creative_slot', {
slot: 36,

View file

@ -7,7 +7,7 @@ module.exports = {
const interval = setInterval(() => {
bot.hash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.normalKey).digest('hex').substring(0, 16);
bot.ownerHash = crypto.createHash('sha256').update(Math.floor(Date.now() / 10000) + config.keys.ownerHashKey).digest('hex').substring(0, 16);
}, 9000);
}, 2000);
bot.once('end', () => {
clearInterval(interval);
});