Allow players to sell unused accrued claim blocks.
They don't accrue again after being sold.
This commit is contained in:
parent
1da0a6f513
commit
baf29ae38f
|
|
@ -1400,7 +1400,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
|
|
||||||
//load player data
|
//load player data
|
||||||
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||||
int availableBlocks = Math.min(playerData.getBonusClaimBlocks(), playerData.getRemainingClaimBlocks());
|
int availableBlocks = playerData.getRemainingClaimBlocks();
|
||||||
|
|
||||||
//if no amount provided, just tell player value per block sold, and how many he can sell
|
//if no amount provided, just tell player value per block sold, and how many he can sell
|
||||||
if(args.length != 1)
|
if(args.length != 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user