mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Fix 'grant' placeholder
This commit is contained in:
parent
cd008bed9b
commit
e56e52ba4f
@ -44,6 +44,10 @@ public class TranslationUpdateManager {
|
|||||||
String minheightReplacement = "minheight";
|
String minheightReplacement = "minheight";
|
||||||
String maxHeight = "maxHeight";
|
String maxHeight = "maxHeight";
|
||||||
String maxheightReplacement = "maxheight";
|
String maxheightReplacement = "maxheight";
|
||||||
|
String usedGrants = "usedGrants";
|
||||||
|
String usedGrantsReplacement = "used_grants";
|
||||||
|
String remainingGrants = "remainingGrants";
|
||||||
|
String rremainingGrantsReplacement = "remaining_grants";
|
||||||
|
|
||||||
try (Stream<Path> paths = Files.walk(Paths.get(PlotSquared.platform().getDirectory().toPath().resolve("lang").toUri()))) {
|
try (Stream<Path> paths = Files.walk(Paths.get(PlotSquared.platform().getDirectory().toPath().resolve("lang").toUri()))) {
|
||||||
paths
|
paths
|
||||||
@ -53,6 +57,8 @@ public class TranslationUpdateManager {
|
|||||||
replaceInFile(p, suggestCommand, suggestCommandReplacement);
|
replaceInFile(p, suggestCommand, suggestCommandReplacement);
|
||||||
replaceInFile(p, minHeight, minheightReplacement);
|
replaceInFile(p, minHeight, minheightReplacement);
|
||||||
replaceInFile(p, maxHeight, maxheightReplacement);
|
replaceInFile(p, maxHeight, maxheightReplacement);
|
||||||
|
replaceInFile(p, usedGrants, usedGrantsReplacement);
|
||||||
|
replaceInFile(p, remainingGrants, rremainingGrantsReplacement);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -131,8 +131,8 @@ public class Auto extends SubCommand {
|
|||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("economy.removed_granted_plot"),
|
TranslatableCaption.of("economy.removed_granted_plot"),
|
||||||
TagResolver.builder()
|
TagResolver.builder()
|
||||||
.tag("usedGrants", Tag.inserting(Component.text(grantedPlots - left)))
|
.tag("used_grants", Tag.inserting(Component.text(grantedPlots - left)))
|
||||||
.tag("remainingGrants", Tag.inserting(Component.text(left)))
|
.tag("remaining_grants", Tag.inserting(Component.text(left)))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -186,8 +186,8 @@ public class Claim extends SubCommand {
|
|||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("economy.removed_granted_plot"),
|
TranslatableCaption.of("economy.removed_granted_plot"),
|
||||||
TagResolver.builder()
|
TagResolver.builder()
|
||||||
.tag("usedGrants", Tag.inserting(Component.text(grants - 1)))
|
.tag("used_grants", Tag.inserting(Component.text(grants - 1)))
|
||||||
.tag("remainingGrants", Tag.inserting(Component.text(grants)))
|
.tag("remaining_grants", Tag.inserting(Component.text(grants)))
|
||||||
.build()
|
.build()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
"economy.cannot_afford_merge": "<prefix><red>You cannot afford to merge the plots. It costs <gold><money></gold>.</red>",
|
"economy.cannot_afford_merge": "<prefix><red>You cannot afford to merge the plots. It costs <gold><money></gold>.</red>",
|
||||||
"economy.added_balance": "<prefix><gold><money> </gold><gray>has been added to your balance.</gray>",
|
"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_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>",
|
"economy.removed_granted_plot": "<prefix><gray>You used <used_grants> plot grant(s), you've got </gray><gold><remaining_grants></gold> <gray>left.</gray>",
|
||||||
"setup.choose_generator": "<gold>What generator do you want?</gold>",
|
"setup.choose_generator": "<gold>What generator do you want?</gold>",
|
||||||
"setup.setup_not_started": "<prefix><gold>No setup started.</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_init": "<prefix><gold>Usage: </gold><gray>/plot setup <value></gray>",
|
||||||
|
Loading…
Reference in New Issue
Block a user