From b92707d6eace3fe0024a500a2fa4134482eaf3eb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 14 Jun 2012 22:43:46 -0500 Subject: [PATCH] Preserve whitelist ordering. Addresses BUKKIT-1805 By: Jeff Wardian --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index 708daf7355..cd85bdb107 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -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 getWhitelistedPlayers() { - Set result = new HashSet(); + Set result = new LinkedHashSet(); for (Object name : server.getWhitelisted()) { result.add(getOfflinePlayer((String) name));