Added math stuff to calculate price based on points (thanks everett)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user