mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fix MM update in plot condensation
This commit is contained in:
parent
dbfc43e3cd
commit
c6b0b99cd6
@ -47,7 +47,13 @@ public class TranslationUpdateManager {
|
|||||||
String usedGrants = "usedGrants";
|
String usedGrants = "usedGrants";
|
||||||
String usedGrantsReplacement = "used_grants";
|
String usedGrantsReplacement = "used_grants";
|
||||||
String remainingGrants = "remainingGrants";
|
String remainingGrants = "remainingGrants";
|
||||||
String rremainingGrantsReplacement = "remaining_grants";
|
String remainingGrantsReplacement = "remaining_grants";
|
||||||
|
String minimumRadius = "minimumRadius";
|
||||||
|
String minimumRadiusReplacement = "minimum_radius";
|
||||||
|
String maximumMoves = "maximumMoves";
|
||||||
|
String maximumMovesReplacement = "maximum_moves";
|
||||||
|
String userMove = "userMove";
|
||||||
|
String userMoveReplacement = "user_move";
|
||||||
|
|
||||||
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
|
||||||
@ -58,7 +64,10 @@ public class TranslationUpdateManager {
|
|||||||
replaceInFile(p, minHeight, minheightReplacement);
|
replaceInFile(p, minHeight, minheightReplacement);
|
||||||
replaceInFile(p, maxHeight, maxheightReplacement);
|
replaceInFile(p, maxHeight, maxheightReplacement);
|
||||||
replaceInFile(p, usedGrants, usedGrantsReplacement);
|
replaceInFile(p, usedGrants, usedGrantsReplacement);
|
||||||
replaceInFile(p, remainingGrants, rremainingGrantsReplacement);
|
replaceInFile(p, remainingGrants, remainingGrantsReplacement);
|
||||||
|
replaceInFile(p, minimumRadius, minimumRadiusReplacement);
|
||||||
|
replaceInFile(p, maximumMoves, maximumMovesReplacement);
|
||||||
|
replaceInFile(p, userMove, userMoveReplacement);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -256,11 +256,11 @@ public class Condense extends SubCommand {
|
|||||||
player.sendMessage(TranslatableCaption.of("condense.default_eval"));
|
player.sendMessage(TranslatableCaption.of("condense.default_eval"));
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("condense.minimum_radius"),
|
TranslatableCaption.of("condense.minimum_radius"),
|
||||||
TagResolver.resolver("minimumRadius", Tag.inserting(Component.text(minimumRadius)))
|
TagResolver.resolver("minimum_radius", Tag.inserting(Component.text(minimumRadius)))
|
||||||
);
|
);
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("condense.maximum_moved"),
|
TranslatableCaption.of("condense.maximum_moved"),
|
||||||
TagResolver.resolver("maxMove", Tag.inserting(Component.text(maxMove)))
|
TagResolver.resolver("maximum_moves", Tag.inserting(Component.text(maxMove)))
|
||||||
);
|
);
|
||||||
player.sendMessage(TranslatableCaption.of("condense.input_eval"));
|
player.sendMessage(TranslatableCaption.of("condense.input_eval"));
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
@ -269,7 +269,7 @@ public class Condense extends SubCommand {
|
|||||||
);
|
);
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("condense.estimated_moves"),
|
TranslatableCaption.of("condense.estimated_moves"),
|
||||||
TagResolver.resolver("userMove", Tag.inserting(Component.text(userMove)))
|
TagResolver.resolver("user_move", Tag.inserting(Component.text(userMove)))
|
||||||
);
|
);
|
||||||
player.sendMessage(TranslatableCaption.of("condense.eta"));
|
player.sendMessage(TranslatableCaption.of("condense.eta"));
|
||||||
player.sendMessage(TranslatableCaption.of("condense.radius_measured"));
|
player.sendMessage(TranslatableCaption.of("condense.radius_measured"));
|
||||||
|
@ -248,11 +248,11 @@
|
|||||||
"condense.skipping": "<prefix><red>Skipping complex plot: </red><gold><plot></gold><red>.</red>",
|
"condense.skipping": "<prefix><red>Skipping complex plot: </red><gold><plot></gold><red>.</red>",
|
||||||
"condense.task_stopped": "<prefix><gold>Task already stopped.</gold>",
|
"condense.task_stopped": "<prefix><gold>Task already stopped.</gold>",
|
||||||
"condense.default_eval": "<dark_gray><strikethrough>=== <reset> <gold>DEFAULT EVAL </gold><dark_gray><strikethrough>===</dark_gray>",
|
"condense.default_eval": "<dark_gray><strikethrough>=== <reset> <gold>DEFAULT EVAL </gold><dark_gray><strikethrough>===</dark_gray>",
|
||||||
"condense.minimum_radius": "<gold>Minimum radius: </gold><gray><minimumRadius></gray>",
|
"condense.minimum_radius": "<gold>Minimum radius: </gold><gray><minimum_radius></gray>",
|
||||||
"condense.maximum_moved": "<gold>Maximum moved: </gold><gray><maximumMoves></gray>",
|
"condense.maximum_moved": "<gold>Maximum moved: </gold><gray><maximum_moves></gray>",
|
||||||
"condense.input_eval": "<dark_gray><strikethrough>=== <reset> <gold>INPUT EVAL </gold><dark_gray><strikethrough>===</dark_gray>",
|
"condense.input_eval": "<dark_gray><strikethrough>=== <reset> <gold>INPUT EVAL </gold><dark_gray><strikethrough>===</dark_gray>",
|
||||||
"condense.input_radius": "<gold>Input radius: </gold><gray><radius></gray>",
|
"condense.input_radius": "<gold>Input radius: </gold><gray><radius></gray>",
|
||||||
"condense.estimated_moves": "<gold>Estimated moves: </gold><gray><userMove></gray>",
|
"condense.estimated_moves": "<gold>Estimated moves: </gold><gray><user_move></gray>",
|
||||||
"condense.eta": "<prefix><gold>Estimated time: No idea, times will drastically change based on the system performance and load.</gold>",
|
"condense.eta": "<prefix><gold>Estimated time: No idea, times will drastically change based on the system performance and load.</gold>",
|
||||||
"condense.radius_measured": "<yellow> - Radius is measured in plot width.</yellow>",
|
"condense.radius_measured": "<yellow> - Radius is measured in plot width.</yellow>",
|
||||||
"database.starting_conversion": "<prefix><gold>Starting...</gold>",
|
"database.starting_conversion": "<prefix><gold>Starting...</gold>",
|
||||||
|
Loading…
Reference in New Issue
Block a user