From 9344e1ca795c6a69a4d290baabe0389ebf9c8eda Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 13 May 2021 13:32:34 +0200 Subject: [PATCH] Make `/plot setup` header translatable - Document a couple of permission nodes --- Bukkit/src/main/resources/plugin.yml | 4 ++++ Core/src/main/java/com/plotsquared/core/command/Setup.java | 2 +- Core/src/main/resources/lang/messages_en.json | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/resources/plugin.yml b/Bukkit/src/main/resources/plugin.yml index 2ca2622f4..b93429cad 100644 --- a/Bukkit/src/main/resources/plugin.yml +++ b/Bukkit/src/main/resources/plugin.yml @@ -288,6 +288,10 @@ permissions: default: false plots.admin.flight: default: false + plots.admin.command.blocked-cmds.shared: + default: false + plots.admin.command.blocked-cmds.road: + default: false plots.teleport.delay.bypass: default: false diff --git a/Core/src/main/java/com/plotsquared/core/command/Setup.java b/Core/src/main/java/com/plotsquared/core/command/Setup.java index d6473725e..a0e6f9116 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Setup.java +++ b/Core/src/main/java/com/plotsquared/core/command/Setup.java @@ -61,7 +61,7 @@ public class Setup extends SubCommand { public void displayGenerators(PlotPlayer player) { StringBuilder message = new StringBuilder(); - message.append("What generator do you want?"); + message.append(TranslatableCaption.of("setup.choose_generator").getComponent(player)); for (Entry> entry : SetupUtils.generators.entrySet()) { if (entry.getKey().equals(PlotSquared.platform().pluginName())) { message.append("\n - ").append(entry.getKey()).append( diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index be7b4944c..b2563eb86 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -112,6 +112,7 @@ "economy.added_balance": " has been added to your balance.", "economy.removed_balance": " has been taken from your balance.", "economy.removed_granted_plot": "You used plot grant(s), you've got left.", + "setup.choose_generator": "What generator do you want?", "setup.setup_not_started": "No setup started.", "setup.setup_init": "Usage: /plot setup ", "setup.setup_step": "[Step ] - Expecting: Default: ",