mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-07-29 18:45:26 +02:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user