From 5446a542890ddeb37942bf1c96426f5669ebce8b Mon Sep 17 00:00:00 2001 From: itqop Date: Thu, 14 Nov 2024 02:04:29 +0300 Subject: [PATCH] Fix typo --- src/main/java/org/itqop/chatit/commands/ChatITCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/itqop/chatit/commands/ChatITCommand.java b/src/main/java/org/itqop/chatit/commands/ChatITCommand.java index ab8ec11..45368a7 100644 --- a/src/main/java/org/itqop/chatit/commands/ChatITCommand.java +++ b/src/main/java/org/itqop/chatit/commands/ChatITCommand.java @@ -48,7 +48,7 @@ public class ChatITCommand { }) ) .then(Commands.literal("mode") - .requires(source -> source.hasPermission(2)) // Требует уровень разрешения 2 (оператор) + .requires(source -> source.hasPermission(2)) .then(Commands.argument("mode", StringArgumentType.word()) .executes(context -> { String modeInput = StringArgumentType.getString(context, "mode").toLowerCase(); @@ -61,10 +61,8 @@ public class ChatITCommand { return 0; } - // Установка нового режима в конфигурации Config.setProfanityMode(newMode); - // Отправка подтверждающего сообщения context.getSource().sendSuccess( () -> Component.literal("Режим проверки мата установлен на: " + newMode.name().toLowerCase() + ".") .withStyle(ChatFormatting.GREEN), @@ -77,7 +75,6 @@ public class ChatITCommand { ) ); - // Регистрация команды /r dispatcher.register(Commands.literal("r") .then(Commands.argument("message", MessageArgument.message()) .executes(context -> {