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

Implement Adventure's pointer system #6445

Closed
wants to merge 2 commits into from

Conversation

kezz
Copy link
Contributor

@kezz kezz commented Aug 20, 2021

This PR replaces #5708 and implements Adventure's Pointer system in the following classes:

  • CraftPlayer,
  • CraftWorld,
  • CraftEntity, and
  • ServerCommandSender.

Additionally, two methods are added to Permissible that retrieve an Adventure TriState for a given permission.

@kezz kezz requested review from a team as code owners August 20, 2021 09:16
+ .withDynamic(net.kyori.adventure.identity.Identity.DISPLAY_NAME, this::displayName)
+ .withDynamic(net.kyori.adventure.identity.Identity.NAME, this::getName)
+ .withDynamic(net.kyori.adventure.identity.Identity.UUID, this::getUniqueId)
+ .withStatic(net.kyori.adventure.permission.PermissionChecker.POINTER, this::checkPermission)
Copy link
Contributor

Choose a reason for hiding this comment

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

will need Locale with 4.9.0

@kezz
Copy link
Contributor Author

kezz commented Sep 20, 2021

Superseded by #6634.

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