Make the "Display all commands" message configurable too

This commit is contained in:
Sauilitired 2019-04-01 09:04:19 +02:00
parent 11689bf855
commit df3e78ee40
No known key found for this signature in database
GPG Key ID: C0207FF7EA146678
2 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class Help extends Command {
"%category_desc%", c.toString())); "%category_desc%", c.toString()));
} }
builder.append("\n").append(Captions.HELP_INFO_ITEM.s().replaceAll("%category%", "all") builder.append("\n").append(Captions.HELP_INFO_ITEM.s().replaceAll("%category%", "all")
.replaceAll("%category_desc%", "Display all commands")); .replaceAll("%category_desc%", Captions.HELP_DISPLAY_ALL_COMMANDS.s()));
builder.append("\n" + Captions.HELP_FOOTER.s()); builder.append("\n" + Captions.HELP_FOOTER.s());
MainUtil.sendMessage(player, builder.toString(), false); MainUtil.sendMessage(player, builder.toString(), false);
return; return;

View File

@ -840,6 +840,8 @@ public enum Captions {
HELP_INFO_ITEM("$1/plot help %category% $3- $2%category_desc%", "Help"), HELP_ITEM( HELP_INFO_ITEM("$1/plot help %category% $3- $2%category_desc%", "Help"), HELP_ITEM(
"$1%usage% [%alias%]&- $3- $2%desc%&-", "Help"), "$1%usage% [%alias%]&- $3- $2%desc%&-", "Help"),
HELP_DISPLAY_ALL_COMMANDS("Display all commands", "Help"),
BUCKET_ENTRIES_IGNORED( BUCKET_ENTRIES_IGNORED(
"$2Total bucket values add up to 1 or more. Blocks without a spcified chance will be ignored", "$2Total bucket values add up to 1 or more. Blocks without a spcified chance will be ignored",
"Generator_Bucket"), "Generator_Bucket"),