diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/TranslationUpdateManager.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/TranslationUpdateManager.java index 0c25f5bf7..2e499c6c9 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/TranslationUpdateManager.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/TranslationUpdateManager.java @@ -44,6 +44,10 @@ public class TranslationUpdateManager { String minheightReplacement = "minheight"; String maxHeight = "maxHeight"; String maxheightReplacement = "maxheight"; + String usedGrants = "usedGrants"; + String usedGrantsReplacement = "used_grants"; + String remainingGrants = "remainingGrants"; + String rremainingGrantsReplacement = "remaining_grants"; try (Stream paths = Files.walk(Paths.get(PlotSquared.platform().getDirectory().toPath().resolve("lang").toUri()))) { paths @@ -53,6 +57,8 @@ public class TranslationUpdateManager { replaceInFile(p, suggestCommand, suggestCommandReplacement); replaceInFile(p, minHeight, minheightReplacement); replaceInFile(p, maxHeight, maxheightReplacement); + replaceInFile(p, usedGrants, usedGrantsReplacement); + replaceInFile(p, remainingGrants, rremainingGrantsReplacement); }); } } diff --git a/Core/src/main/java/com/plotsquared/core/command/Auto.java b/Core/src/main/java/com/plotsquared/core/command/Auto.java index 826b981e6..230ed9e3a 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Auto.java +++ b/Core/src/main/java/com/plotsquared/core/command/Auto.java @@ -131,8 +131,8 @@ public class Auto extends SubCommand { player.sendMessage( TranslatableCaption.of("economy.removed_granted_plot"), TagResolver.builder() - .tag("usedGrants", Tag.inserting(Component.text(grantedPlots - left))) - .tag("remainingGrants", Tag.inserting(Component.text(left))) + .tag("used_grants", Tag.inserting(Component.text(grantedPlots - left))) + .tag("remaining_grants", Tag.inserting(Component.text(left))) .build() ); } diff --git a/Core/src/main/java/com/plotsquared/core/command/Claim.java b/Core/src/main/java/com/plotsquared/core/command/Claim.java index d1f81d4fe..de35e7bb1 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Claim.java +++ b/Core/src/main/java/com/plotsquared/core/command/Claim.java @@ -186,8 +186,8 @@ public class Claim extends SubCommand { player.sendMessage( TranslatableCaption.of("economy.removed_granted_plot"), TagResolver.builder() - .tag("usedGrants", Tag.inserting(Component.text(grants - 1))) - .tag("remainingGrants", Tag.inserting(Component.text(grants))) + .tag("used_grants", Tag.inserting(Component.text(grants - 1))) + .tag("remaining_grants", Tag.inserting(Component.text(grants))) .build() ); } diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 9434ab814..0fde34600 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -124,7 +124,7 @@ "economy.cannot_afford_merge": "You cannot afford to merge the plots. It costs .", "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.", + "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 ",