/** * Get FOLLOWERLIST Token * * @param display The character to be queried * @return The list of followers. */ public static String getFollowerListToken(CharacterDisplay display) { StringBuilder buf = new StringBuilder(); boolean needComma = false; for (Follower aF : display.getFollowerList()) { for (PlayerCharacter nPC : Globals.getPCList()) { CharacterDisplay nDisplay = nPC.getDisplay(); if (aF.getFileName().equals(nDisplay.getFileName())) { if (needComma) { buf.append(", "); } buf.append(FileAccess.filterString(nDisplay.getName())); needComma = true; } } } return buf.toString(); }