Skip to content

Commit

Permalink
Fixed message interpretation in click order
Browse files Browse the repository at this point in the history
  • Loading branch information
AerWyn81 committed Feb 19, 2024
1 parent a4039f3 commit 5159c06
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ public void onPlayerInteract(PlayerInteractEvent e) {
if (HeadService.getChargedHeadLocations().stream()
.filter(h -> h.getUuid() != headLocation.getUuid() && !playerHeads.contains(h.getUuid()))
.anyMatch(h -> h.getOrderIndex() <= headLocation.getOrderIndex())) {
player.sendMessage(LanguageService.getMessage("Messages.OrderClickError")
.replaceAll("%name%", headLocation.getDisplayedName()));
player.sendMessage(PlaceholdersService.parse(player.getName(), player.getUniqueId(),
LanguageService.getMessage("Messages.OrderClickError")
.replaceAll("%name%", headLocation.getDisplayedName())));
return;
}
}
Expand Down

0 comments on commit 5159c06

Please # to comment.