Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed banned players from ArrayList to HashSet #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Changed banned players from ArrayList to HashSet #1

wants to merge 1 commit into from

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