-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Conversation
@@ -147,6 +149,36 @@ public static BlockStateSnapshotResult getBlockState(@Nonnull Block block, boole | |||
return ENVIRONMENT.getBlockState(block, useSnapshot); | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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); | |||
} | |||
|
|||
/** |
There was a problem hiding this comment.
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.
Closed in favor of #16 |
This adds PlayerProfile/UUID fetching support. Not much else to say, really.