Added a set clone so that individual /ignores do not accidentally propagate to the entire server's blacklist

This commit is contained in:
Christian 'ketura' McCarty
2021-11-16 14:49:47 -06:00
parent 931c1d09d2
commit 22fad69269

View File

@@ -78,7 +78,7 @@ public class CachedPlayerDAO implements PlayerDAO, Cached {
public Set<String> getBannedUsernames() throws SQLException {
if(_bannedUsernames.isEmpty())
_bannedUsernames = _delegate.getBannedUsernames();
return _bannedUsernames;
return new HashSet<>(_bannedUsernames);
}
@Override