Update claimblock price when checking price for them.
This commit is contained in:
parent
6dfa078fa7
commit
405f7547a6
|
|
@ -1689,16 +1689,17 @@ public class GriefPrevention extends JavaPlugin
|
||||||
}
|
}
|
||||||
|
|
||||||
Economy economy = economyWrapper.getEconomy();
|
Economy economy = economyWrapper.getEconomy();
|
||||||
|
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||||
|
|
||||||
//if no parameter, just tell player cost per block and balance
|
//if no parameter, just tell player cost per block and balance
|
||||||
if (args.length != 1)
|
if (args.length != 1)
|
||||||
{
|
{
|
||||||
GriefPrevention.sendMessage(player, TextMode.Info, Messages.BlockPurchaseCost, String.valueOf(GriefPrevention.instance.config_economy_claimBlocksPurchaseCost), String.valueOf(economy.getBalance(player)));
|
GriefPrevention.sendMessage(player, TextMode.Info, Messages.BlockPurchaseCost, String.valueOf(claimBlockCost(playerData.getBonusClaimBlocks()+playerData.getAccruedClaimBlocks(),1)), String.valueOf(economy.getBalance(player)));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
// PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||||
|
|
||||||
//try to parse number of blocks
|
//try to parse number of blocks
|
||||||
int blockCount;
|
int blockCount;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user