Skip to content

Parameters for user selectors, user or target, and multiple users #2389

Closed
@WillBAnders

Description

@WillBAnders

The Parameter class contains helpers for player() (which supports selectors) and playerOrTarget(), but not similar methods for users. There is also a ResourceKeyedValueParameters.MANY_GAME_PROFILES parameter (as well as one for MANY_PLAYERS), but these do not have helpers in Parameter so I am unsure if they are intended to be used publicly.

I believe what's happening here is that because users must be loaded, it is more performant to start with the player related methods and then fall back to users with some type of Parameter.firstOf(...) approach, though how exactly that's done I'm not sure. Still, it would be helpful to have some methods in Parameter for these situations if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions