Skip to content

Commit

Permalink
add clientConnection proxy auth clear command
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed May 21, 2024
1 parent 17c6e1e commit 7e1dc2e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public CommandUsage commandUsage() {
"proxy port <port>",
"proxy user <user>",
"proxy password <password>",
"proxy auth clear",
"bindAddress <address>",
"timeout on/off",
"timeout <seconds>",
Expand Down Expand Up @@ -94,6 +95,13 @@ public LiteralArgumentBuilder<CommandContext> register() {
.title("Proxy Port Set");
return 1;
})))
.then(literal("auth").then(literal("clear").executes(c -> {
CONFIG.client.connectionProxy.user = "";
CONFIG.client.connectionProxy.password = "";
c.getSource().getEmbed()
.title("Proxy User and Password Cleared");
return 1;
})))
.then(literal("user")
.then(argument("user", wordWithChars()).executes(c -> {
c.getSource().setSensitiveInput(true);
Expand Down

0 comments on commit 7e1dc2e

Please sign in to comment.