mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
Show name: for legacy names in region domains.
This commit is contained in:
parent
a1d59373ac
commit
9b69c07663
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user