Add `/ess dump all` as alias for `/ess dump *` (#4517)

Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
This commit is contained in:
Lax 2021-09-08 14:48:47 -07:00 committed by GitHub
parent fde6524e46
commit c85d772e1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ body:
- type: input
attributes:
label: "`/ess dump *` output"
description: Run `/ess dump *` in the console, then copy and paste the link from the output of the command into this box. (If this command doesn't work, you should [update EssentialsX](https://essentialsx.net/downloads.html) and try again.)
label: "`/ess dump all` output"
description: Run `/ess dump all` in the console, then copy and paste the link from the output of the command into this box. (If this command doesn't work, you should [update EssentialsX](https://essentialsx.net/downloads.html) and try again.)
validations:
required: true
- type: input

View File

@ -266,7 +266,7 @@ public class Commandessentials extends EssentialsCommand {
boolean kits = false;
boolean log = false;
for (final String arg : args) {
if (arg.equals("*")) {
if (arg.equals("*") || arg.equalsIgnoreCase("all")) {
config = true;
discord = true;
kits = true;
@ -719,9 +719,9 @@ public class Commandessentials extends EssentialsCommand {
}
break;
case "dump":
final List<String> list = Lists.newArrayList("config", "kits", "log", "discord", "*");
final List<String> list = Lists.newArrayList("config", "kits", "log", "discord", "all");
for (String arg : args) {
if (arg.equals("*")) {
if (arg.equals("*") || arg.equalsIgnoreCase("all")) {
list.clear();
return list;
}

View File

@ -316,7 +316,7 @@ essentialsCommandUsage6=/<command> cleanup
essentialsCommandUsage6Description=Cleans up old userdata
essentialsCommandUsage7=/<command> homes
essentialsCommandUsage7Description=Manages user homes
essentialsCommandUsage8=/<command> dump [*] [config] [discord] [kits] [log]
essentialsCommandUsage8=/<command> dump [all] [config] [discord] [kits] [log]
essentialsCommandUsage8Description=Generates a server dump with the requested information
essentialsHelp1=The file is broken and Essentials can''t open it. Essentials is now disabled. If you can''t fix the file yourself, go to http\://tiny.cc/EssentialsChat
essentialsHelp2=The file is broken and Essentials can''t open it. Essentials is now disabled. If you can''t fix the file yourself, either type /essentialshelp in game or go to http\://tiny.cc/EssentialsChat