[SPIGOT-3724] Changing SkullMeta for Player Skulls often does not work Created: 31/Dec/17 Updated: 01/Jan/18 Resolved: 01/Jan/18 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Erik Zeiger | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Attachments: |
![]() |
Description |
I created a player head on login. I used SkullMeta.setOwningPlayer and got the "Alex" skin. The deprecated setOwner gave the correct skin. |
Comments |
Comment by md_5 [ 01/Jan/18 ] |
It's nothing to do with setOwningPlayer, it's a long sequence of bugs on both client and server. |
Comment by Erik Zeiger [ 31/Dec/17 ] |
I'm able to get your skull with that command in singleplayer and on the server, so I'm not sure what to add. |
Comment by md_5 [ 31/Dec/17 ] |
I cannot reproduce this. Will not give me my skull. Nor will setOwner(name) in the plugin. |
Comment by Erik Zeiger [ 31/Dec/17 ] |
My issue is not with the rate limit. I wait around 2 minutes between restarts, and am able to get my head using setOwner(name) every time. setOwningPlayer always gives me the alex head. |
Comment by md_5 [ 31/Dec/17 ] |
Reproduced in single player with It also sometimes works in Spigot/CraftBukkit and sometimes doesn't. It's Mojang's way too aggressive rate limiting on skins. |
Comment by Erik Zeiger [ 31/Dec/17 ] |
When I change it to setOwner(event.getPlayer().getName()), it updates to the right skin after a few seconds. If you restart and rejoin too quick, you get rate limited and it won't work (as you'd expect). |
Comment by md_5 [ 31/Dec/17 ] |
I'm not seeing either method work in Spigot |
Comment by Erik Zeiger [ 31/Dec/17 ] |
Code: @EventHandler Picture of my skin and the skull I was given. |
Comment by md_5 [ 31/Dec/17 ] |
Useful reproduction code please |