fix: /plot grant add doesn't send success message reliably (#4683)

* fix: move success message to correct execution point in /plot grant add

* fix: send `grants.added` message even if player is offline

---------

Co-authored-by: Alexander Brandes <mc.cache@web.de>
This commit is contained in:
Lion_King287
2025-07-24 20:25:40 +02:00
committed by GitHub
parent 87859b002b
commit da0a57a48c

View File

@@ -101,6 +101,10 @@ public class Grant extends Command {
);
} else {
access.set(access.get().orElse(0) + 1);
player.sendMessage(
TranslatableCaption.of("grants.added"),
TagResolver.resolver("grants", Tag.inserting(Component.text(access.get().orElse(0))))
);
}
}
} else {