Skip to content

Commit

Permalink
chore(HomeCommand): fix invalid position placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
aivruu committed Dec 28, 2024
1 parent 4ebd82d commit 49828e2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ public HomeCommand(
for (byte i = 0; i < homes.length; i++) {
final HomePositionValueObject position = homes[i].position();
BUILDER.append(messages.homeListFormat.replace("<id>", homes[i].id()
.replace("<x>", Integer.toString(position.x()))
.replace("<y>", Integer.toString(position.y()))
.replace("<z>", Integer.toString(position.z()))
.replace("<home-x>", Integer.toString(position.x()))
.replace("<home-y>", Integer.toString(position.y()))
.replace("<home-z>", Integer.toString(position.z()))
)).append("\n");
}
player.sendMessage(MiniMessageHelper.parse(BUILDER.toString()));
Expand Down

0 comments on commit 49828e2

Please sign in to comment.