mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804
This commit is contained in:
parent
ae94a3308d
commit
ae98a6f051
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue