LuckPerms

LuckPerms

41.4k Downloads

Add logic to work with OfflinePlayers

778b opened this issue ยท 2 comments

commented

Description

Hello, today im transfered my permissionEX configs to LuckPerms db, and I have a problem with setups permission for users which didnt join to server after LuckPerms was add, because LuckPerms just didnt see them. If we will have this improvement it can be accelerate work with LuckPerms.

Proposed Behaviour

When using command:
/lp user permission set
Where is name of player which didnt join to server after added LuckPerms.
We just added this player to db

Extra Details

its all

commented

LP stores data under a user's UUID. If a player hasn't joined since LP has been installed, it can't know their UUID, and thus can't set data on them using just their name. However, all user commands will also take a UUID instead of a username, so you can still manage them that way. Additionally, if the users have data saved, they will be visible in the web editor, although again, under their UUID.

I suppose an option could be added to pull usernames from Mojang and cache them, but it would need to at least be able to be turned off, if not defaulting to off, to accommodate offline mode servers and those using Geyser.

commented

Such a setting already exists to make that possible

# If the servers own UUID cache/lookup facility should be used when there is no record for a player
# already in LuckPerms.
#
# - When this is set to 'false', commands using a player's username will not work unless the player
# has joined since LuckPerms was first installed.
# - To get around this, you can use a player's uuid directly in the command, or enable this option.
# - When this is set to 'true', the server facility is used. This may use a number of methods,
# including checking the servers local cache, or making a request to the Mojang API.
use-server-uuid-cache: false