public void saveToConfig() { Config.getGamesConfig().set("games." + getKey() + ".enabled", enabled); Config.getGamesConfig().set("games." + getKey() + ".name", name); Config.getGamesConfig().set("games." + getKey() + ".type", type.getKey()); Config.getGamesConfig().set("games." + getKey() + ".plays", playCount); Config.saveConfigs(); }
public static boolean hasValue(String value) { for (MinigameType type : values()) { if (type.toString().equalsIgnoreCase(value)) return true; } return false; }