From 07fd7e497fe4041d65b87095f36b30a63fc38c02 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 2 Apr 2021 14:04:17 +0200 Subject: [PATCH] Strip commands from translation files --- .../main/java/com/plotsquared/core/command/FlagCommand.java | 1 + Core/src/main/java/com/plotsquared/core/command/Help.java | 2 ++ Core/src/main/resources/lang/messages_en.json | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/FlagCommand.java b/Core/src/main/java/com/plotsquared/core/command/FlagCommand.java index d6260c5e8..e3f7b73d3 100644 --- a/Core/src/main/java/com/plotsquared/core/command/FlagCommand.java +++ b/Core/src/main/java/com/plotsquared/core/command/FlagCommand.java @@ -615,6 +615,7 @@ public final class FlagCommand extends Command { // Flag example player.sendMessage( TranslatableCaption.of("flag.flag_info_example"), + Template.of("command", "/plot flag set"), Template.of("flag", plotFlag.getName()), Template.of("value", plotFlag.getExample()) ); diff --git a/Core/src/main/java/com/plotsquared/core/command/Help.java b/Core/src/main/java/com/plotsquared/core/command/Help.java index 1dc2e597b..928dea944 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Help.java +++ b/Core/src/main/java/com/plotsquared/core/command/Help.java @@ -117,12 +117,14 @@ public class Help extends Command { for (CommandCategory c : CommandCategory.values()) { builder.append(Component.newline()).append(MINI_MESSAGE .parse(TranslatableCaption.of("help.help_info_item").getComponent(player), + Template.of("command", "/plot help"), Template.of("category", c.name().toLowerCase()), Template.of("category_desc", c.getComponent(player)) )); } builder.append(Component.newline()).append(MINI_MESSAGE .parse(TranslatableCaption.of("help.help_info_item").getComponent(player), + Template.of("command", "/plot help"), Template.of("category", "all"), Template.of("category_desc", "Display all commands") )); diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 0c600b016..c8381dab4 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -398,7 +398,7 @@ "help.help_header": "--------- PlotSquared Help ---------", "help.help_page_header": "\nCategory: , Page: /\n", "help.help_footer": "--------- PlotSquared Help ---------", - "help.help_info_item": "/plot help - ", + "help.help_info_item": " - ", "help.help_item": " []\n - \n", "help.help_display_all_commands": "Display all commands.", "help.direction": "Current direction: ", @@ -475,7 +475,7 @@ "flag.flag_info_name": "Name: ", "flag.flag_info_category": "Category: ", "flag.flag_info_description": "Description: ", - "flag.flag_info_example": "Example: >/plot flag set ", + "flag.flag_info_example": "Example: > ", "flag.flag_info_default_value": "Default Value: ", "flags.flag_category_string": "String Flags", "flags.flag_category_integers": "Integer Flags",