@Override public List<String> getStringList(String path) { return configFile.getStringList(path); } }
@Override public List<String> getStringList(Object file, String path) { return ((YamlConfiguration) file).getStringList(path); }
private void updateAuthors(YamlConfiguration yamlConfiguration) { List<String> list = yamlConfiguration.getStringList("meta.authors"); if (!list.isEmpty()) { for (String author : list) { if (!authors.contains(author)) { authors.add(author); } } } } }
private String[] getLines(YamlConfiguration config, String id) { List<String> list = config.getStringList(id); if (list.isEmpty()) { return null; } while (list.size() < 4) { list.add(""); } if (list.size() > 4) { list = list.subList(0, 4); } return list.toArray(new String[0]); }
protected String[] get(Event event) { String v = (String) this.value.getSingle(event); String f = (String) this.file.getSingle(event); if ((v == null) || (f == null)) { return null; } File file = new File(f.replaceAll("/", Matcher.quoteReplacement(File.separator))); if (!file.exists()) { try { file.getParentFile().mkdirs(); file.createNewFile(); } catch (IOException e) { } } YamlConfiguration yml = YamlConfiguration.loadConfiguration(file); List<String> list = yml.getStringList(v); String[] s = new String[list.size()]; return list.toArray(s); }
List<String> builders = yaml.getStringList("Builders"); List<String> containers = yaml.getStringList("Containers"); List<String> accessors = yaml.getStringList("Accessors"); List<String> managers = yaml.getStringList("Managers");
for (String memberEntry : partiesFile.getStringList(partyName + ".Members")) { String[] memberSplit = memberEntry.split("[|]"); members.put(UUID.fromString(memberSplit[0]), memberSplit[1]);
for (String memberName : partiesFile.getStringList(partyName + ".Members")) { PlayerProfile memberProfile = mcMMO.getDatabaseManager().loadPlayerProfile(memberName, false);
for (String singleServer : config.getStringList(ConfigNode.BUNGEE_PINGER_SERVERS.getPath())) { String[] nameAndAddress = singleServer.split(":", 2); if (nameAndAddress.length < 2) {