Skip to content

Changed banned players from ArrayList to HashSet#1

Open
zford wants to merge 1 commit intoyottabyte:masterfrom
zford:master
Open

Changed banned players from ArrayList to HashSet#1
zford wants to merge 1 commit intoyottabyte:masterfrom
zford:master

Conversation

@zford
Copy link

@zford zford commented Aug 11, 2011

Banned players should contain no dupes, so Set is more appropriate than a List. Lookups should be faster faster on a HashSet compared to an ArrayList for large number of players.

@Psithief
Copy link

Is that a list of 'currently banned' or is it a list of 'every ban that has occurred'? Some users have can be banned more than once - temporary bans of course.

@zford
Copy link
Author

zford commented Oct 27, 2011

It's perma bans, and either way, KiwiAdmin definately doesn't allow you to ban a player twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants