mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
discord *list ploblem fix finally
This commit is contained in:
parent
a734e23049
commit
c1ae25270a
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
[
|
[
|
||||||
"New anti core break method (loop placing command block)"
|
"Discord *list fixed (finally)"
|
||||||
]
|
]
|
|
@ -21,7 +21,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
discordExecute: async function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
discordExecute: async function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
||||||
try {
|
try {
|
||||||
players = '';
|
let players = '';
|
||||||
for (const property of bot.tabcompleteplayers) {
|
for (const property of bot.tabcompleteplayers) {
|
||||||
if (property.match.startsWith('@')) continue;
|
if (property.match.startsWith('@')) continue;
|
||||||
players += `\`${property.match}\` › \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
|
players += `\`${property.match}\` › \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
|
||||||
|
@ -31,6 +31,8 @@ module.exports = {
|
||||||
.setTitle('Players')
|
.setTitle('Players')
|
||||||
.setDescription(players);
|
.setDescription(players);
|
||||||
channeldc.send({embeds: [Embed]});
|
channeldc.send({embeds: [Embed]});
|
||||||
|
|
||||||
|
players = '';
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue