From ae98a6f05174880ad9693ec44d9fa4ec9a07962e Mon Sep 17 00:00:00 2001 From: Jeff Wardian Date: Thu, 14 Jun 2012 22:31:47 -0500 Subject: [PATCH] Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804 --- src/main/java/org/bukkit/craftbukkit/CraftServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index cd85bdb107..f695b83369 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -1029,6 +1029,9 @@ public final class CraftServer implements Server { Set result = new LinkedHashSet(); for (Object name : server.getWhitelisted()) { + if (((String)name).length() == 0 || ((String)name).startsWith("#")) { + continue; + } result.add(getOfflinePlayer((String) name)); }