Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ public void celebrateClaim(Island island, int chunkX, int chunkZ, @Nullable UUID
chunkZ - (island.getCenter().getBlockZ() >> 4));
Bukkit.getPluginManager().callEvent(new ChunkUnlockEvent(island, offset, count - 1, claimer));
long creditLeft = Math.max(0, cm.getCredit(island));
String claimerName = playerName(claimer);
island.getMemberSet().forEach(uuid -> {
User user = User.getInstance(uuid);
if (user.isOnline() && addon.inWorld(user.getWorld())) {
user.sendMessage("chunkblock.chunks.claimed", "[number]", String.valueOf(count),
user.sendMessage("chunkblock.chunks.claimed", TextVariables.NAME, claimerName,
"[number]", String.valueOf(count),
"[credit]", String.valueOf(creditLeft));
if (count >= cm.getMaxChunks(island)) {
user.sendMessage("chunkblock.chunks.max-reached", "[number]", String.valueOf(count));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ chunkblock:
claim-confirm: "<yellow>Claim this chunk for </yellow><aqua>[cost] </aqua><yellow>level(s)? That leaves you </yellow><aqua>[after] </aqua><yellow>level(s) of credit. </yellow><gold>Sneak and hit the border again </gold><yellow>within </yellow><aqua>[seconds]s </aqua><yellow>to confirm.</yellow>"
no-credit: "<red>You need </red><aqua>[needed] </aqua><red>more level(s) of credit to claim this chunk.</red>"
beyond-limit: "<red>That chunk is beyond your island's protection area.</red>"
claimed: "<green><bold>Chunk claimed! </bold>Your island is now </green><aqua>[number] </aqua><green>chunks. Credit left: </green><aqua>[credit] </aqua><green>level(s).</green>"
claimed: "<green><bold>[name] claimed a chunk! </bold>Your island is now </green><aqua>[number] </aqua><green>chunks. Credit left: </green><aqua>[credit] </aqua><green>level(s).</green>"
credit: "<green>You can claim </green><aqua>[count] </aqua><green>more chunk(s)! Go to your border and hit it where you want to grow.</green>"
relocked: "<red>Your island level dropped — [count] chunk(s) re-locked, newest first. Regain the levels to claim them back!</red>"
ejected: "<red>The chunk you were in re-locked, so you were moved to safety.</red>"
Expand Down
Loading