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

Add PlayerProfile support to PaperLib #4

Closed
wants to merge 2 commits into from

Conversation

egg82
Copy link
Contributor

@egg82 egg82 commented Oct 8, 2018

This adds PlayerProfile/UUID fetching support. Not much else to say, really.

@egg82 egg82 changed the title Added PlayerProfile support to PaperLib Add PlayerProfile support to PaperLib Oct 8, 2018
@@ -147,6 +149,36 @@ public static BlockStateSnapshotResult getBlockState(@Nonnull Block block, boole
return ENVIRONMENT.getBlockState(block, useSnapshot);
}

/**
Copy link
Member

Choose a reason for hiding this comment

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

These API's weren't added to be async. They were added to more efficiently look up a players UUID than loading the entire offline player.

Nothing would prevent you loading the offline player async too, but I'm not sure this lib needs to handle that.

Lets just drop the async and keep them sync, and plugins can call the method async themselves.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, fair. I guess I was just kinda going based off the current naming scheme. Though you can totally load them async it's not necessarily a requirement.

Copy link
Member

Choose a reason for hiding this comment

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

You only changed the name. Need to remove the futures themselves and the async part too.

@@ -147,6 +149,36 @@ public static BlockStateSnapshotResult getBlockState(@Nonnull Block block, boole
return ENVIRONMENT.getBlockState(block, useSnapshot);
}

/**
Copy link
Member

Choose a reason for hiding this comment

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

You only changed the name. Need to remove the futures themselves and the async part too.

@egg82 egg82 closed this Aug 16, 2019
@egg82 egg82 deleted the feature/uuid branch August 16, 2019 23:36
@egg82
Copy link
Contributor Author

egg82 commented Aug 17, 2019

Closed in favor of #16

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