Skip to content

Commit

Permalink
Fix displaying the added notification position.
Browse files Browse the repository at this point in the history
  • Loading branch information
imDMK committed Aug 29, 2023
1 parent 659a44c commit 2722287
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void addAutoNotification(Notification notification) {
private void sendAddedNotification(CommandSender sender, Notification addedNotification) {
Notification autoMessageAddedNotification = new NotificationFormatter(this.notificationConfiguration.autoMessageAddedNotification)
.placeholder("{TYPE}", addedNotification.type().name())
.placeholder("{POSITION}", this.notificationConfiguration.autoMessages.size())
.placeholder("{POSITION}", this.notificationConfiguration.autoMessages.size() - 1)
.build();

this.notificationSender.sendNotification(sender, autoMessageAddedNotification);
Expand Down

0 comments on commit 2722287

Please sign in to comment.