i rolled it back

This commit is contained in:
ChomeNS 2022-08-19 11:46:36 +07:00
parent 95d3cbf836
commit 724119e091

View file

@ -11,9 +11,9 @@ module.exports = {
try {
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: 'Players:', color: 'green'}]));
await sleep(60);
for (const property of bot.players.getPlayers()) {
// if (property.match.startsWith('@')) continue;
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `${property.name}`, color: 'yellow'}, {text: ' ', color: 'aqua'}, {text: `${property.UUID}`, color: 'aqua'}]));
for (const property of bot.tabcompleteplayers) {
if (property.match.startsWith('@')) continue;
bot.core.run('minecraft:tellraw @a ' + JSON.stringify(['', {text: `${property.match}`, color: 'yellow'}, {text: ' ', color: 'aqua'}, {text: `${bot.players.getPlayer(property.match).UUID}`, color: 'aqua'}]));
}
} catch (e) {
return;
@ -22,9 +22,9 @@ module.exports = {
discordExecute: async function(bot, username, usernameraw, sender, prefix, args, channeldc) {
try {
let players = '';
for (const property of bot.players.getPlayers()) {
// if (property.match.startsWith('@')) continue;
players += `\`${property.name}\` \`${property.UUID}\`` + '\n';
for (const property of bot.tabcompleteplayers) {
if (property.match.startsWith('@')) continue;
players += `\`${property.match}\` \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
}
const Embed = new MessageEmbed()
.setColor('#FFFF00')