Object created_o = globalConfig.get(ConfPaths.CONFIGVERSION_CREATED); int buildCreated = -1; if (created_o != null && created_o instanceof Integer) { final Object defaultValue = defaultConfig.get(path); if (defaultValue instanceof ConfigurationSection) { problems.add(path + (maxPaths >= 0 ? "" : (" - Changed with build " + defaultBuild + ", can not handle entire configuration sections yet. "))); continue; final Object currentValue = globalConfig.get(path); if (currentValue == null || defaultValue == null) {
if (config.get(ConfPaths.MOVING_VEHICLE_IGNOREDVEHICLES) == null) { // Hidden setting for now.
/** * Get the minimally found number for the given config path. This does not throw errors. It will return null, if nothing is found or all lookups failed otherwise. * <br> * Note: What happens with things like NaN is unspecified. * @param path Config path. * @return Value or null. */ public static Double getMinNumberForAllConfigs(final String path){ Number min = null; final IWorldDataManager worldMan = NCPAPIProvider.getNoCheatPlusAPI().getWorldDataManager(); final Iterator<Entry<String, IWorldData>> it = worldMan.getWorldDataIterator(); while (it.hasNext()){ final ConfigFile config = it.next().getValue().getRawConfiguration(); try{ final Object obj = config.get(path); if (obj instanceof Number){ final Number num = (Number) obj; if (min == null || num.doubleValue() < min.doubleValue()){ min = num; } } } catch (Throwable t){ // Holzhammer } } return min.doubleValue(); }
final ConfigFile config = it.next().getValue().getRawConfiguration(); try{ final Object obj = config.get(path); if (obj instanceof Number){ final Number num = (Number) obj;
public void setActionFactory(final ActionFactoryFactory actionFactoryFactory) { setActionFactory(actionFactoryFactory.newActionFactory(((MemorySection) this.get(ConfPaths.STRINGS)).getValues(false))); }