mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
check
This commit is contained in:
parent
724119e091
commit
0d7cec66ed
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ function inject(bot, dcclient) {
|
|||
var sender = bot.playersAddedPlayers[usernameraw];
|
||||
var username = bot.getplayerusername[sender];
|
||||
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
|
||||
bot.command_handler.run(username, usernameraw, message, sender);
|
||||
for (const property of bot.tabcompleteplayers) {
|
||||
if (property.match===username) {
|
||||
bot.command_handler.run(username, usernameraw, message, sender);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue