#How to update texture change NMS for the player itself

1 messages · Page 1 of 1 (latest)

covert sigil
#

I’m currently using nms to change a player’s skin using GameProfile

#

Then I’m using hide and show to refresh the skin for the player

#

But it doesn’t refresh it for the player himself

#

Only for his surroundings

open badge
#

Probably not possible.

covert sigil
#

How would I make that work

open badge
#

atleast wasn't in 1.8

covert sigil
#

I’m talking version 1.19.2

covert sigil
#
        CraftPlayer src = (CraftPlayer) source;
        CraftPlayer trgt = (CraftPlayer) targetSkin;
        src.getHandle().getGameProfile().getProperties().removeAll("textures");
        src.getHandle().getGameProfile().getProperties().putAll("textures", trgt.getProfile().getProperties().get("textures"));
        src.hidePlayer(Utils.plugin, src);
        src.showPlayer(Utils.plugin, src);
    }``` @ember epoch that is all I've got currently
covert sigil
#

yeah

#

i've managed to finish it