Changes '/whitelist list' to ignore comments. Addresses BUKKIT-1804
Dieser Commit ist enthalten in:
Ursprung
ae94a3308d
Commit
ae98a6f051
@ -1029,6 +1029,9 @@ public final class CraftServer implements Server {
|
|||||||
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();
|
Set<OfflinePlayer> result = new LinkedHashSet<OfflinePlayer>();
|
||||||
|
|
||||||
for (Object name : server.getWhitelisted()) {
|
for (Object name : server.getWhitelisted()) {
|
||||||
|
if (((String)name).length() == 0 || ((String)name).startsWith("#")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
result.add(getOfflinePlayer((String) name));
|
result.add(getOfflinePlayer((String) name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren