Charge money/give money when buying/selling

This commit is contained in:
stjn
2021-11-07 18:10:50 +01:00
parent 4b5e09c553
commit 5ce955d6ee
4 changed files with 54 additions and 10 deletions
@@ -80,6 +80,12 @@ public final class Config extends AbstractConfig {
VILLAGER_NAME = config.getString("idkyet.villager-name", VILLAGER_NAME); //TODO change path
}
public static final String NOT_ENOUGH_MONEY = "<red>You only have $<money>, you need at least $<price> for this purchase.</red>";
public static final String PURCHASED_ITEM = "<green>You bought <amount> <item> for <price>!</green>";
private static void loadMessages() {
}
private static void loadVillagerTypes() {
VillagerType.clearVillagerTypes();
ConfigurationSection configurationSection = config.getConfigurationSection("villager-types");