Skip to content

Commit

Permalink
Subtract claim blocks used for expantion from bonus intead of accrued
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohron committed Feb 11, 2017
1 parent 3791143 commit 4b08c48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**REQUIRES: SF 2096+ & GP 255+ (latest versions are highly recommended)**
- Fixed island width calculation being off by 2 `/is info`
- Fixed `isa transfer` not working when supplied with an owner
- Added `is expand [blocks]` to allow player to expand their islands using claim blocks _(subtracted from accrued blocks - will regen)_
- Added `is expand [blocks]` to allow player to expand their islands using claim blocks _(subtracted from bonus claim blocks - will regen)_
- Added `skyclaims.max-size` option to limit how large players can expand their islands
- `skyclaims.initial-size` now supports being set to 256
- Added a confirmation message to the admin delete shortcut in `/is info`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm
throw new CommandException(Text.of(TextColors.RED, "You need ", TextColors.LIGHT_PURPLE, cost, " claim blocks (", TextColors.LIGHT_PURPLE, bal, TextColors.RED, ") to expand your island by ", TextColors.LIGHT_PURPLE, blocks, TextColors.RED, "."));

// Use the player's claim blocks to expand the island
playerData.setAccruedClaimBlocks(playerData.getAccruedClaimBlocks() - cost);
playerData.setBonusClaimBlocks(playerData.getBonusClaimBlocks() - cost);
island.expand(blocks);
player.sendMessage(Text.of(TextColors.GREEN, "Your island has been expanded to ", TextColors.LIGHT_PURPLE, island.getWidth(), TextColors.GRAY, "x", TextColors.LIGHT_PURPLE, island.getWidth(), TextColors.GREEN, "."));

Expand Down

0 comments on commit 4b08c48

Please sign in to comment.