From a86400ae677838600f4fb346e813e4b2eb354178 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Fri, 19 Aug 2022 11:53:09 +0700 Subject: [PATCH] i think better remove it --- plugins/commands.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; }