Skip to content

Commit

Permalink
- Fix map hud missing lines 13 and 9.
Browse files Browse the repository at this point in the history
    - Closes #7699.
  • Loading branch information
LlmDl committed Dec 12, 2024
1 parent 51d7fa0 commit fa24d57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Towny/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<artifactId>towny</artifactId>
<packaging>jar</packaging>
<version>0.101.0.3</version>
<version>0.101.0.4</version>

<licenses>
<license>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public class MapHUD {
/* Scoreboards use old-timey colours. */
private static final ChatColor WHITE = ChatColor.WHITE;
private static final ChatColor GOLD = ChatColor.GOLD;
private static final ChatColor YELLOW = ChatColor.YELLOW;
private static final ChatColor LIGHT_PURPLE = ChatColor.LIGHT_PURPLE;
private static final ChatColor RED = ChatColor.RED;
private static final ChatColor GREEN = ChatColor.GREEN;
private static final ChatColor DARK_GREEN = ChatColor.DARK_GREEN;

Expand Down Expand Up @@ -66,10 +69,10 @@ public static void toggleOn(Player player) {
}

String townEntry = DARK_GREEN + Translatable.of("town_sing").forLocale(player) + ": ";
// A blank entry has to have a unique, invisible character:
String ownerEntry = WHITE.toString();
String districtEntry = GOLD.toString();
String plotnameEntry = DARK_GREEN.toString();
// A blank entry has to have a unique, invisible character. The TEAM_MAP_PREFIX teams have taken colors 0-9.
String ownerEntry = YELLOW.toString();
String districtEntry = LIGHT_PURPLE.toString();
String plotnameEntry = RED.toString();

score = nonMapLines;
board.registerNewTeam(TEAM_TOWN).addEntry(townEntry);
Expand Down
5 changes: 4 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10172,4 +10172,7 @@ v0.92.0.11:
- New Placeholders:
- %townyadvanced_resident_join_date_unformatted% - returns the long value of the time in epoch milliseconds that a player joined the server.
- %townyadvanced_resident_join_date_formatted% - returns a human-readable date and time at which the player joined the server.
- Closes #7691.
- Closes #7691.
0.101.0.4:
- Fix map hud missing lines 13 and 9.
- Closes #7699.

0 comments on commit fa24d57

Please sign in to comment.