1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 04:05:48 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/utils/Settings.java

37 lines
1.1 KiB
Java
Raw Normal View History

package me.mrCookieSlime.Slimefun.utils;
import me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config;
public final class Settings {
public boolean RESEARCHES_ENABLED;
public boolean RESEARCHES_FREE_IN_CREATIVE;
public int BLOCK_LOADING_INFO_DELAY;
public int BLOCK_AUTO_SAVE_DELAY;
public boolean GUIDE_SHOW_VANILLA_RECIPES;
public int EMERALD_ENCHANTS_LIMIT;
public boolean DUST_WASHER_LEGACY;
public boolean ORE_GRINDER_LEGACY;
public boolean ORE_WASHER_LEGACY;
public Settings(Config cfg) {
RESEARCHES_FREE_IN_CREATIVE = cfg.getBoolean("options.allow-free-creative-research");
BLOCK_LOADING_INFO_DELAY = cfg.getInt("URID.info-delay");
BLOCK_AUTO_SAVE_DELAY = cfg.getInt("options.auto-save-delay-in-minutes");
GUIDE_SHOW_VANILLA_RECIPES = cfg.getBoolean("options.show-vanilla-recipes-in-guide");
EMERALD_ENCHANTS_LIMIT = cfg.getInt("options.emerald-enchantment-limit");
DUST_WASHER_LEGACY = cfg.getBoolean("options.legacy-dust-washer");
ORE_WASHER_LEGACY = cfg.getBoolean("options.legacy-ore-washer");
ORE_GRINDER_LEGACY = cfg.getBoolean("options.legacy-ore-grinder");
}
}