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

Perm-check for offline player #3854

Open
chelminski opened this issue Mar 15, 2024 · 2 comments
Open

Perm-check for offline player #3854

chelminski opened this issue Mar 15, 2024 · 2 comments
Labels
type: suggestion The issue is suggesting a new feature or enhancement.

Comments

@chelminski
Copy link

chelminski commented Mar 15, 2024

Description

Possibility to check the permissions of a player who is not on the server without using the luckyperms commands.

Proposed Behaviour

What do I expect? Querying the server for user permissions would be successful.

Extra Details

Currently, when using placeholders, I get an error or the value is empty.

image

  • /papi parse test-player %vault_group% (using vault always error)
  • %otherplayer_hasperm_test-player_perm_test-perm% (empty value)
  • %parseother_{testplayer}_{player_name}% (empty value)

Of course, all of the above works when the player is on the server online.

Any attempt to check the permissions of a player who is not on the server will fail. (Except luckperms commands. Unfortunately, they are not helpful as the value is returned after the command is executed and is needed as a placeholder.)

I would like to ask you to add the following functionality. I care about this very much.

@chelminski chelminski added the type: suggestion The issue is suggesting a new feature or enhancement. label Mar 15, 2024
@underscore11code
Copy link
Member

Querying of any data for an offline player will require performing a data load - a slow operation. It could maybe be considered to add the ability to load data for placeholders parsed in an async context (Similar to our vault integration for offline players), but (again, like our vault integration) any placeholders parsed in a sync context would need to be blocked otherwise there'd be a large lag spike.

@chelminski
Copy link
Author

chelminski commented Mar 15, 2024

There may also be a command that allows you to check the player's permission for a specific period of time, e.g. 120 seconds (ability to set in config.yml). This solution would solve my problem the same way.

I need to have this option enabled while running automated commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: suggestion The issue is suggesting a new feature or enhancement.
Projects
None yet
Development

No branches or pull requests

2 participants