Skip to content

Commit 2d1f618

Browse files
authored
Add more string replacements for /is level output (#303)
* Add more string replacements to output * Forgot to include the locale change
1 parent 774bbd0 commit 2d1f618

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/main/java/world/bentobox/level/commands/IslandLevelCommand.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ private void showResult(User user, UUID playerUUID, Island island, long oldLevel
111111
}
112112
// Send player how many points are required to reach next island level
113113
if (results.getPointsToNextLevel() >= 0) {
114-
user.sendMessage("island.level.required-points-to-next-level", "[points]", String.valueOf(results.getPointsToNextLevel()));
114+
user.sendMessage("island.level.required-points-to-next-level",
115+
"[points]", String.valueOf(results.getPointsToNextLevel()),
116+
"[progress]", String.valueOf(this.addon.getSettings().getLevelCost()-results.getPointsToNextLevel()),
117+
"[levelcost]", String.valueOf(this.addon.getSettings().getLevelCost())
118+
);
115119
}
116120
// Tell other team members
117121
if (results.getLevel() != oldLevel) {

src/main/resources/locales/en-US.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ island:
4242
estimated-wait: "&a Estimated wait: [number] seconds"
4343
in-queue: "&a You are number [number] in the queue"
4444
island-level-is: "&a Island level is &b[level]"
45-
required-points-to-next-level: "&a [points] points required until the next level"
45+
required-points-to-next-level: "&aLevel progress: &6[progress]&b/&e[levelcost]&a points"
4646
deaths: "&c([number] deaths)"
4747
cooldown: "&c You must wait &b[time] &c seconds until you can do that again"
4848
in-progress: "&6 Island level calculation is in progress..."

0 commit comments

Comments
 (0)