Skip to content

Commit

Permalink
Add /ess dump all as alias for /ess dump * (#4517)
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
  • Loading branch information
LaxWasHere and JRoy committed Sep 8, 2021
1 parent fde6524 commit c85d772
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/report-a-bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private void runDump(Server server, CommandSource sender, String commandLabel, S
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;
Expand Down Expand Up @@ -719,9 +719,9 @@ protected List<String> getTabCompleteOptions(final Server server, final CommandS
}
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;
}
Expand Down
2 changes: 1 addition & 1 deletion Essentials/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c85d772

Please sign in to comment.