Skip to content

Commit

Permalink
- Fix adjacent district plot error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlmDl committed Feb 18, 2025
1 parent 7787e7e commit 95b0671
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static void testAdjacentAddDistrictRulesOrThrow(WorldCoord townBlockToCla
int numAdjacent = numAdjacentDistrictTownBlocks(town, district, townBlockToClaim);
// The number of adjacement TBs with the same District is not enough.
if (numAdjacent < minAdjacentBlocks)
throw new TownyException(Translatable.of("msg_min_adjacent_blocks", minAdjacentBlocks, numAdjacent));
throw new TownyException(Translatable.of("msg_min_adjacent_district_blocks", minAdjacentBlocks));
}
}

Expand Down
3 changes: 2 additions & 1 deletion Towny/src/main/resources/ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10251,4 +10251,5 @@ v0.92.0.11:
- Bump net.kyori:adventure-text-serializer-plain from 4.18.0 to 4.19.0.
- Bump net.kyori:adventure-text-minimessage from 4.18.0 to 4.19.0.
- Allow admins to bypass the outpost limit meant to stop spawning when a town is over their outpost limit.
- Fix outpost limit of zero being able to be bypassed via command.
- Fix outpost limit of zero being able to be bypassed via command.
- Fix adjacent district plot error message.
2 changes: 2 additions & 0 deletions Towny/src/main/resources/lang/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,8 @@ msg_warn_are_you_sure_you_want_to_transfer_nation_ownership: "<red>Are you sure
msg_warn_town_already_capital: "<red>The town of %s is already the nation capital."
msg_min_adjacent_blocks: 'You are required to have at least %s adjacent town blocks. There is only %s.'

msg_min_adjacent_district_blocks: 'You are required to have at least %s adjacent district plots.'

# Shown when a player with /plot evict permissions uses /plot claim on an owned but not for sale plot, please preserve comma space at the start when translating.
msg_plot_claim_consider_evict_instead: ', perhaps you are looking for /plot evict instead?'

Expand Down

0 comments on commit 95b0671

Please sign in to comment.