Make /plot setup header translatable

- Document a couple of permission nodes
This commit is contained in:
NotMyFault 2021-05-13 13:32:34 +02:00
parent 68eb5cd74f
commit 9344e1ca79
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -61,7 +61,7 @@ public class Setup extends SubCommand {
public void displayGenerators(PlotPlayer<?> player) {
StringBuilder message = new StringBuilder();
message.append("<gold>What generator do you want?</gold>");
message.append(TranslatableCaption.of("setup.choose_generator").getComponent(player));
for (Entry<String, GeneratorWrapper<?>> entry : SetupUtils.generators.entrySet()) {
if (entry.getKey().equals(PlotSquared.platform().pluginName())) {
message.append("\n<dark_gray> - </dark_gray><dark_green>").append(entry.getKey()).append(

View File

@ -112,6 +112,7 @@
"economy.added_balance": "<prefix><gold><money> </gold><gray>has been added to your balance.</gray>",
"economy.removed_balance": "<prefix><gold><money> </gold><gray>has been taken from your balance.</gray>",
"economy.removed_granted_plot": "<prefix><gray>You used <usedGrants> plot grant(s), you've got </gray><gold><remainingGrants></gold> <gray>left.</gray>",
"setup.choose_generator": "<gold>What generator do you want?</gold>",
"setup.setup_not_started": "<prefix><gold>No setup started.</gold>",
"setup.setup_init": "<prefix><gold>Usage: </gold><gray>/plot setup <value></gray>",
"setup.setup_step": "<gold><dark_gray>[</dark_gray>Step <step><dark_gray>]</dark_gray> <description> <gray>-</gray> Expecting: <gray><type></gray> Default: <gray><value></gray></gold>",