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

Switch to island homes from player homes. #1689

Merged
merged 7 commits into from
Mar 1, 2021
Merged

Switch to island homes from player homes. #1689

merged 7 commits into from
Mar 1, 2021

Conversation

tastybento
Copy link
Member

@tastybento tastybento commented Feb 23, 2021

Stores home locations and max homes in the Island object and uses named homes instead of numbers. Adds commands
required to manage home names, specifically rename and delete. I did not add list as there is tab complete on island go, but it may be required.

To Do:

  • Add max homes setting when owner logs in.
  • Fix unit tests - they are probably broken
  • Test
  • Add a conversion from player home locations to the island homes. Not sure what the best way to do this is. Use the owner's? How to name them? 1,2,3,4, etc.?
  • Localization of new strings.

What is not done or supported (yet?):

  1. A suggestion to replace the last home with the current sethome as requested in Homes with a name #1565 . The map doesn't have a concept of the last home, so I'm not sure what to suggest here. Instead I just show the current list.
  2. A suggestion in Per-team island homes #571 to still support per-player homes. In theory, the decision as to whether to use or support Island or Player homes is in the IslandManager, but I haven't done that yet.

Stores home locations and max homes in the Island object. Adds commands
required to manage home names, specifically rename and delete. I did not
add list as there is tab complete on island go, but it may be required.


To Do:

1. Test
2. Add max homes setting when owner logs in.
3. Fix unit tests - they are probably broken
4. Add a conversion from player home locations to the island homes. Not
sure what the best way to do this is. Use the owner's?
5. Localization of new strings
@tastybento tastybento linked an issue Feb 23, 2021 that may be closed by this pull request
@tastybento tastybento added the Type: Enhancement Improvement or modification which is usually a new feature. label Feb 23, 2021
@tastybento tastybento linked an issue Feb 23, 2021 that may be closed by this pull request
@tastybento
Copy link
Member Author

This is ready to go now. I haven't done the language translations, but apart from that it all seems to work. In terms of migration of homes, it's only done based on the island owner's homes. So, if non-owner team members had their own home locations, then they will lose them and they will be replaced by the owner's home locations, which are now the island home locations. They will be named simply 2,3,4,5, etc.

Conflicts:
	src/test/java/world/bentobox/bentobox/managers/IslandsManagerTest.java
@tastybento
Copy link
Member Author

Unless there are any objections, I'm going to merge this into develop. We can improve it more over time.

@tastybento tastybento marked this pull request as ready for review February 28, 2021 18:43
@BONNe
Copy link
Member

BONNe commented Feb 28, 2021

I agree with these changes.

@tastybento
Copy link
Member Author

Okay, I'm going to merge so that we can get some broader testing done before release.

@tastybento tastybento merged commit b6a69d0 into develop Mar 1, 2021
@tastybento tastybento deleted the island_homes branch March 1, 2021 18:42
@BONNe BONNe mentioned this pull request Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Homes with a name Per-team island homes
2 participants