From 1869ce4d63f4ef9b16bc3140f4bb5a53d8bfe646 Mon Sep 17 00:00:00 2001 From: Roman / Linnea Gräf Date: Sun, 5 Mar 2023 21:20:52 +0100 Subject: Fix /neudevtest useragent command (#648) --- .../github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/io') diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt index 805ff114..a5ff48d2 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt @@ -171,7 +171,7 @@ class DevTestCommand { } thenLiteralExecute("dev") { NotEnoughUpdates.INSTANCE.config.hidden.dev = !NotEnoughUpdates.INSTANCE.config.hidden.dev - reply("§e[NEU] Dev mode " + if (NotEnoughUpdates.INSTANCE.config.hidden.dev) "§aenabled" else "§cdisabled") + reply("Dev mode " + if (NotEnoughUpdates.INSTANCE.config.hidden.dev) "§aenabled" else "§cdisabled") }.withHelp("Toggle developer mode") thenLiteralExecute("saveconfig") { NotEnoughUpdates.INSTANCE.saveConfig() @@ -212,7 +212,7 @@ class DevTestCommand { MiscUtils.copyToClipboard(tabList) reply("Copied tablist to clipboard!") }.withHelp("Copy the tab list") - thenLiteralExecute("useragent") { + thenLiteral("useragent") { thenArgumentExecute("newuseragent", RestArgumentType) { userAgent -> reply("Setting your user agent to ${this[userAgent]}") NotEnoughUpdates.INSTANCE.config.hidden.customUserAgent = this[userAgent] -- cgit