mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-30 11:53:52 -07:00
Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804
By: Jeff Wardian <krinsdeath@hotmail.com>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user