LuckPerms

LuckPerms

41.4k Downloads

Perm-check for offline player

chelminski opened this issue ยท 2 comments

commented

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.

commented

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.

commented

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.