Show name: for legacy names in region domains.

This commit is contained in:
sk89q 2014-08-02 09:53:35 -07:00
parent a1d59373ac
commit 9b69c07663

View File

@ -223,7 +223,10 @@ public String toPlayersString() {
public String toPlayersString(@Nullable ProfileCache cache) {
StringBuilder str = new StringBuilder();
List<String> output = new ArrayList<String>();
output.addAll(playerDomain.getPlayers());
for (String name : playerDomain.getPlayers()) {
output.add("name:" + name);
}
if (cache != null) {
ImmutableMap<UUID, Profile> results = cache.getAllPresent(playerDomain.getUniqueIds());
@ -240,6 +243,7 @@ public String toPlayersString(@Nullable ProfileCache cache) {
output.add("uuid:" + uuid);
}
}
Collections.sort(output, String.CASE_INSENSITIVE_ORDER);
for (Iterator<String> it = output.iterator(); it.hasNext();) {
str.append(it.next());