mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
Preserve whitelist ordering. Addresses BUKKIT-1805
By: Jeff Wardian <krinsdeath@hotmail.com>
This commit is contained in:
parent
fc5ec8c899
commit
b92707d6ea
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ import java.util.Arrays;
|
|||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -1025,7 +1026,7 @@ public final class CraftServer implements Server {
|
|||
}
|
||||
|
||||
public Set<OfflinePlayer> getWhitelistedPlayers() {
|
||||
Set<OfflinePlayer> result = new HashSet<OfflinePlayer>();
|
||||
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();
|
||||
|
||||
for (Object name : server.getWhitelisted()) {
|
||||
result.add(getOfflinePlayer((String) name));
|
||||
|
|
Loading…
Reference in a new issue