This commit is contained in:
ChomeNS 2022-08-19 11:50:56 +07:00
parent 724119e091
commit 0d7cec66ed

View file

@ -52,7 +52,11 @@ function inject(bot, dcclient) {
var sender = bot.playersAddedPlayers[usernameraw]; var sender = bot.playersAddedPlayers[usernameraw];
var username = bot.getplayerusername[sender]; var username = bot.getplayerusername[sender];
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, ''); 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) { } catch (e) {
return; return;
} }