Add increasing prices for claimblocks
This commit is contained in:
parent
d8f64cd09a
commit
999b474a9d
|
|
@ -3896,4 +3896,15 @@ public class GriefPrevention extends JavaPlugin
|
|||
else
|
||||
portalReturnTaskMap.put(player.getUniqueId(), task);
|
||||
}
|
||||
|
||||
private double claimBlockCost(int currentClaimBlocks, int blockCount) {
|
||||
if (Config.claimBlockPrices.isEmpty())
|
||||
return blockCount * GriefPrevention.instance.config_economy_claimBlocksPurchaseCost;
|
||||
|
||||
double totalBlocks = currentClaimBlocks + blockCount;
|
||||
double cost = 0;
|
||||
// TODO finish me
|
||||
return cost;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ public class Config extends AbstractConfig {
|
|||
}
|
||||
|
||||
public static HashMap<Integer, Double> claimBlockPrices = new HashMap<>();
|
||||
public static void claimBlockSettings() {
|
||||
private static void claimBlockSettings() {
|
||||
claimBlockPrices.clear();
|
||||
config.getMap( "claimblock-prices", new HashMap<String, Double>(){{
|
||||
put("0", .25);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user