i think better remove it

This commit is contained in:
ChomeNS 2022-08-19 11:53:09 +07:00
parent 0d7cec66ed
commit a86400ae67

View file

@ -52,11 +52,7 @@ function inject(bot, dcclient) {
var sender = bot.playersAddedPlayers[usernameraw];
var username = bot.getplayerusername[sender];
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
for (const property of bot.tabcompleteplayers) {
if (property.match===username) {
bot.command_handler.run(username, usernameraw, message, sender);
}
}
bot.command_handler.run(username, usernameraw, message, sender);
} catch (e) {
return;
}