diff --git a/plugins/commands.js b/plugins/commands.js index 6df6f7f..3c86e02 100644 --- a/plugins/commands.js +++ b/plugins/commands.js @@ -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; }