/** * set relational placeholders in the text specified placeholders are matched with the pattern * %<rel_(identifier)_(params)>% when set with this method * * @param one Player to compare * @param two Player to compare * @param text text to parse the placeholder values to * @return text with all relational placeholders set to the corresponding values */ public static List<String> setRelationalPlaceholders(Player one, Player two, List<String> text) { if (text == null) { return null; } return text.stream().map(line -> setRelationalPlaceholders(one, two, line)) .collect(Collectors.toList()); }
Msg.msg(s, "&r" + PlaceholderAPI.setRelationalPlaceholders(one, two, parse)); return true; } else if (args[0].equalsIgnoreCase("reload")) {