Added math stuff to calculate price based on points (thanks everett)

This commit is contained in:
2021-12-17 20:44:38 +01:00
parent 8d143b931a
commit 523a7fe16b
7 changed files with 57 additions and 11 deletions
@@ -1,12 +1,8 @@
package com.alttd.config;
import com.alttd.VillagerUI;
import com.alttd.objects.LoadedVillagers;
import com.alttd.objects.VillagerType;
import com.alttd.util.Logger;
import org.bukkit.configuration.ConfigurationSection;
import java.util.Set;
import java.util.UUID;
public class VillagerConfig extends AbstractConfig {
@@ -46,4 +46,9 @@ public class WorthConfig extends AbstractConfig {
prices.put(Material.getMaterial(key), new Price(Utilities.round(worth.getDouble(key), 2)));
}
}
public static int POINT_MOD = 4;
private static void loadOtherStuff() {
POINT_MOD = config.getInt("point-mod", POINT_MOD);
}
}