diff --git a/src/main/java/com/sk89q/worldguard/domains/DefaultDomain.java b/src/main/java/com/sk89q/worldguard/domains/DefaultDomain.java index 678125eb..05c77830 100644 --- a/src/main/java/com/sk89q/worldguard/domains/DefaultDomain.java +++ b/src/main/java/com/sk89q/worldguard/domains/DefaultDomain.java @@ -223,7 +223,10 @@ public String toPlayersString() { public String toPlayersString(@Nullable ProfileCache cache) { StringBuilder str = new StringBuilder(); List output = new ArrayList(); - output.addAll(playerDomain.getPlayers()); + + for (String name : playerDomain.getPlayers()) { + output.add("name:" + name); + } if (cache != null) { ImmutableMap 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 it = output.iterator(); it.hasNext();) { str.append(it.next());