diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2023-03-05 21:20:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 07:20:52 +1100 |
commit | 1869ce4d63f4ef9b16bc3140f4bb5a53d8bfe646 (patch) | |
tree | 69c417376411afdfb8bccd7ec44214b3cab5c141 /src/main/kotlin | |
parent | cf1be847a0552fe04ef29eb56a13b4a30e9006fe (diff) | |
download | NotEnoughUpdates-1869ce4d63f4ef9b16bc3140f4bb5a53d8bfe646.tar.gz NotEnoughUpdates-1869ce4d63f4ef9b16bc3140f4bb5a53d8bfe646.tar.bz2 NotEnoughUpdates-1869ce4d63f4ef9b16bc3140f4bb5a53d8bfe646.zip |
Fix /neudevtest useragent command (#648)
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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] |