Fixed players selling spent claim blocks.
This commit is contained in:
parent
b8a33eaefd
commit
6aad597436
|
|
@ -1361,7 +1361,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 = playerData.getBonusClaimBlocks();
|
int availableBlocks = Math.min(playerData.getBonusClaimBlocks(), 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