From 47c2812fe2a2533853e5090c9a9f089aa752d851 Mon Sep 17 00:00:00 2001 From: Arkadiy <83061703+MEFRREEX@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:44:49 +0200 Subject: [PATCH] Update BotHandler.java --- src/main/java/theoni/vkbot/BotHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/theoni/vkbot/BotHandler.java b/src/main/java/theoni/vkbot/BotHandler.java index 00af560..38cc238 100644 --- a/src/main/java/theoni/vkbot/BotHandler.java +++ b/src/main/java/theoni/vkbot/BotHandler.java @@ -54,7 +54,7 @@ else if (text.equals("/getid")) { manager.sendMessage(String.format(Messages.USER_ID.getText(), message.getFromId()), message); } - else if (text.equals("Rcon")){ + else if (text.equals("rcon") || text.equals("/rcon")){ if (config.getList("allowed-users").contains(message.getFromId())) { if (config.getList("fast-commands").size() != 0) { manager.sendMessage(Messages.RCON_WITH_COMMANDS.getText(), message, Keyboards.commandsKeyboard());