Rebase onto feature/adventure-pointers

This commit is contained in:
lexikiq
2021-06-11 21:06:59 -04:00
parent 9491046935
commit f59516165f
3 changed files with 10 additions and 15 deletions

View File

@@ -285,8 +285,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
return Optional.of((T) this.getUniqueId());
} else if (pointer == Identity.NAME) {
return Optional.of((T) this.getGameProfile().getName());
} else if (pointer == PermissionChecker.POINTER) {
return Optional.of((T) this.permissionChecker);
} else if (pointer == Identity.DISPLAY_NAME) {
return Optional.of((T) asComponent());
}
return Player.super.get(pointer);
}