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

Adds maxMembers to the Island object for persistent storage #1691

Merged
merged 4 commits into from
Feb 27, 2021

Conversation

tastybento
Copy link
Member

Relates to #1690

The goal is to store the maximum number of members an island can have in the island object. The IslandsManager provides a method to obtain this value that also updates it based on the online owner's permissions or default value for the world if the max value is undefined. If there is no value different to the default world value then nothing has to be stored.

@tastybento tastybento added the Type: Enhancement Improvement or modification which is usually a new feature. label Feb 26, 2021
@tastybento tastybento requested a review from BONNe February 26, 2021 02:36
@tastybento tastybento self-assigned this Feb 26, 2021
@BONNe
Copy link
Member

BONNe commented Feb 26, 2021

Weren't there also max trusted and max coop numbers?

@tastybento
Copy link
Member Author

Good point. In that case, maybe a Rank,Max map will be more flexible. That can then be expanded to include ban maxes and limit any other ranks.

@tastybento
Copy link
Member Author

Okay, should be done now. I also added the checks to fix the #1690 bug.

@tastybento tastybento linked an issue Feb 27, 2021 that may be closed by this pull request
@tastybento
Copy link
Member Author

@BONNe What do you think?

@BONNe
Copy link
Member

BONNe commented Feb 27, 2021

I approve changes. I look through it and everything looked correct.

@tastybento tastybento merged commit dfd4df4 into develop Feb 27, 2021
@tastybento tastybento deleted the island_max_members branch February 27, 2021 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users can invite more than his limit approves
2 participants