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

Ben/mv5/anchor #3029

Open
wants to merge 4 commits into
base: MV5
Choose a base branch
from
Open

Ben/mv5/anchor #3029

wants to merge 4 commits into from

Conversation

benwoo1110
Copy link
Member

Refactor to fix variable naming, use vavr, fix checkstyle etc... Also added relevant commands to set, list and delete anchors.

@zax71 zax71 mentioned this pull request Sep 22, 2023
75 tasks
String locationString = anchorsSection.getString(key, "");
Location anchorLocation = this.locationManipulation.stringToLocation(locationString);
if (anchorLocation == null) {
Logging.warning("The location for anchor '%s' is INVALID.", key);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs indicate that the Try will be successful if all anchors or loaded. However, this looks like a case where an anchor isn't loaded. Is it worth handling this differently?

*
* @param anchorName The name of the anchor.
* @param locationString The location of the anchor as string.
* @return Empty {@link Try} if all anchors were successfully loaded, or the exception if an error occurred.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully saved?

@@ -144,46 +144,61 @@

/**
* Gets all anchors that the specified {@link Player} can access.
* @param p The {@link Player}.
*
* @param player The {@link Player}.
* @return An unmodifiable {@link Set} containing all anchors the specified {@link Player} can access.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changes do not return an unmodifiable set.

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.

None yet

2 participants