Added a set clone so that individual /ignores do not accidentally propagate to the entire server's blacklist
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user