[Feature Request] Use commands on offline (disconnected) players
elhertz opened this issue ยท 4 comments
What commands specifically? Do you mean vanilla commands or playerex commands (i.e. /playerex levelup ..
?
I tried reseting someone's level so they wouldn't appear on the top (they stopped playing) and realized that I couldn't do it if they weren't online when executing the command. Tried the levelup and it doesn't work either.
Vanilla commands that involve the player are not actionable when the player is offline. My commands are no different.
That said, I think what you want to do is just remove a player from being displayed on a level leaderboard or similar right? You can do that using either:
/playerex cache remove <uuid>
/playerex cache clear
Where <uuid>
is the uuid of the offline player you want to remove (this uuid can be found out using a few different ways, easiest I think is to just look at their remaining player data file). Both of these commands work for offline players; the first command targets just one player, the second command will target all players - when a player logs in again after clearing the cache, they will reappear on your leaderboard (i.e. they will be added to the cache again).
These commands are there specifically to deal with cases where a player has stopped playing and you want to remove their data from text placeholder displays. See Commands.
Hope that helps.