Player heads lag

Discussion in 'Bukkit Help' started by bruuff, Jun 12, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    bruuff

    Hello out there,

    I startet coding my first bukkit plugin a short time ago and i noticed something:

    When you place a player head that is known to the server (e.g. my own), it applies the right texture almost recently. But if you place heads that have an owner that is not in the Minecraft database (e.g. with "%" in front of it), it takes a while until he assigns the Steve-Texture to it. Before that it is a skeleton head.

    If i place many of these heads with unknown owner in a short amount of time, this causes serious lag. I am guessing that the server searches through the Minecraft database for the correct skin every single time and this is what causes the lag cause it cant find them.

    Is there a way to either preload all players textures who are known to the server or stop this behaviour some other way? I would be very grateful if someone could help me there.

    Have a good day,
    bruuff
     
Thread Status:
Not open for further replies.

Share This Page