Fixed players selling spent claim blocks.
This commit is contained in:
@@ -1361,7 +1361,7 @@ public class GriefPrevention extends JavaPlugin
|
||||
|
||||
//load player data
|
||||
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(args.length != 1)
|
||||
|
||||
Reference in New Issue
Block a user