diff options
author | Jeff Wardian <krinsdeath@hotmail.com> | 2012-06-14 22:31:47 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-06-14 23:33:21 -0500 |
commit | ae98a6f05174880ad9693ec44d9fa4ec9a07962e (patch) | |
tree | 6d9a319f4652bba41d7c379288b059aefb79c875 /src/main/java | |
parent | ae94a3308d189583b4e8efbffa4ad802d0ca4df9 (diff) | |
download | craftbukkit-ae98a6f05174880ad9693ec44d9fa4ec9a07962e.tar craftbukkit-ae98a6f05174880ad9693ec44d9fa4ec9a07962e.tar.gz craftbukkit-ae98a6f05174880ad9693ec44d9fa4ec9a07962e.tar.lz craftbukkit-ae98a6f05174880ad9693ec44d9fa4ec9a07962e.tar.xz craftbukkit-ae98a6f05174880ad9693ec44d9fa4ec9a07962e.zip |
Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftServer.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java index cd85bdb1..f695b833 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<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>(); for (Object name : server.getWhitelisted()) { + if (((String)name).length() == 0 || ((String)name).startsWith("#")) { + continue; + } result.add(getOfflinePlayer((String) name)); } |