Skip to content

Commit

Permalink
- Fix the relational placeholder that showed conquered status not
Browse files Browse the repository at this point in the history
being used for the player which are conquered.
  • Loading branch information
LlmDl committed Jun 4, 2024
1 parent 8fd9899 commit 5127d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private String getRelationalPlaceholder(Player player, Player player2, String id
else if (CombatUtil.isSameTown(res, res2))
return TownySettings.getPAPIRelationSameTown();
else if (CombatUtil.isSameNation(res, res2))
return res2.getTownOrNull().isConquered() ? TownySettings.getPAPIRelationConqueredTown() : TownySettings.getPAPIRelationSameNation();
return res2.getTownOrNull().isConquered() || res.getTownOrNull().isConquered() ? TownySettings.getPAPIRelationConqueredTown() : TownySettings.getPAPIRelationSameNation();
else if (CombatUtil.isAlly(res, res2))
return TownySettings.getPAPIRelationAlly();
else if (CombatUtil.isEnemy(res, res2))
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 @@ -9798,4 +9798,5 @@ v0.92.0.11:
- Bump org.apache.commons:commons-compress from 1.26.1 to 1.26.2.
- Bump me.clip:placeholderapi from 2.11.5 to 2.11.6.
0.100.2.13:
- Improve a couple SQL operations, courtesy of xyzeva with PR #7438. (First-Time Contributor!)
- Improve a couple SQL operations, courtesy of xyzeva with PR #7438. (First-Time Contributor!)
- Fix the relational placeholder that showed conquered status not being used for the player which are conquered.

0 comments on commit 5127d26

Please sign in to comment.