samolego/FabricTailor

[Suggestion] Allow OPs to change skins of offline players

Opened this issue · 6 comments

My 1.20.1 server has events where skins with a theme is a necessity. Being able to change all players' skin via the console even if they are offline would be great.

I already tried modifying the 1.20.1 source code here to allow using a UUID input or a username input then getting the UUID MD5 hash but alas, my lack of experience in modding became an obstacle.

Hum that's actually a cool idea, thanks for suggesting. Rn development is kinda stuck at "just porting, no new features", but I might add it when I revisit the project.

Though if you manage it, I'll be glad if you open a PR ;).

You can use /execute as <offline player> run skin ...

Wait, that works for offline players as well?

I've checked some cases, here's what I found:

  • When in a offline server without fabric tailor, the skin can't be changed, not even in client side.
  • When in a offline server with fabric tailor, a moderator can change the skin of an offline player and an online player. Even when none of the players has fabric tailor installed.

So having fabric tailor installed in the server, even if it allows offline players, skins can be changed for everyone. Any moderator can use /execute as <player> run skin ... to change anyone's skin, even for offline players.

I haven't tested using the upload skin function, the cases where done using the player subcommand, but I assume this will also work, even if the server is in a network without internet access.

You're talking about online-mode=false, which is irrelevant, as OP suggested changing skins for disconnected players.

Ohh, I see, sorry, my bad.