From df3e78ee4003faab90a2ad7431fd86ec5d91ccc5 Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Mon, 1 Apr 2019 09:04:19 +0200 Subject: [PATCH] Make the "Display all commands" message configurable too --- .../intellectualsites/plotsquared/plot/commands/Help.java | 2 +- .../intellectualsites/plotsquared/plot/config/Captions.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Help.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Help.java index f186f3219..ab6fb73a3 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Help.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/commands/Help.java @@ -83,7 +83,7 @@ public class Help extends Command { "%category_desc%", c.toString())); } 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()); MainUtil.sendMessage(player, builder.toString(), false); return; diff --git a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Captions.java b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Captions.java index b334d8dbe..092d5c6bb 100644 --- a/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Captions.java +++ b/Core/src/main/java/com/github/intellectualsites/plotsquared/plot/config/Captions.java @@ -840,6 +840,8 @@ public enum Captions { HELP_INFO_ITEM("$1/plot help %category% $3- $2%category_desc%", "Help"), HELP_ITEM( "$1%usage% [%alias%]&- $3- $2%desc%&-", "Help"), + HELP_DISPLAY_ALL_COMMANDS("Display all commands", "Help"), + BUCKET_ENTRIES_IGNORED( "$2Total bucket values add up to 1 or more. Blocks without a spcified chance will be ignored", "Generator_Bucket"),