From 5ed0ab3b6d9af0d621e72fcff88c6fe6cd260cf4 Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 6 Feb 2023 23:26:25 +0100 Subject: properly follow redirects and no more syntax error --- .../github/moulberry/notenoughupdates/util/brigadier/NEUBrigadierHook.kt | 1 - 1 file changed, 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/brigadier/NEUBrigadierHook.kt b/src/main/java/io/github/moulberry/notenoughupdates/util/brigadier/NEUBrigadierHook.kt index abe13be0..668c412a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/brigadier/NEUBrigadierHook.kt +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/brigadier/NEUBrigadierHook.kt @@ -72,7 +72,6 @@ class NEUBrigadierHook( try { brigadierRoot.dispatcher.execute(results) } catch (syntax: CommandSyntaxException) { - sender.addChatMessage(ChatComponentText("${YELLOW}[NEU] $RED${syntax.message}")) brigadierRoot.getAllUsages("/$commandName", commandNode, mutableSetOf()).forEach { sender.addChatMessage(ChatComponentText("${YELLOW}[NEU] ${it.path} - ${it.help}")) } -- cgit