Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Załadowanie skina pakietem - w jaki sposób załadować graczowi?


Riveilli

Rekomendowane odpowiedzi

Opublikowano

Witam,

ktoś ma jakiś pomysł w jaki sposób można załadować customowego skina graczowi?

 

Próbowałem PacketPlayOutNamedEntitySpawn (...)

 

In 1.7.6 to 1.8, the server sends the player's skin data along with the player spawn packet. It's far easier on this version, as you only need to intercept the spawn packet and modify the player's name, you don't need to touch the skin properties at all. You can pretty much do all this with ProtocooLib alone.

 

In 1.8 and above, the server sends the player's skin data along with the player list item packet. It is stored on your client and used whenever an entity with the same UUID is spawned. It's relatively harder to do it in this version, as you have no control of the name or skin properties when directly spawning the player, you have to send this data when adding the player to the tab list. As you probably guessed by now, it will affect the name and skin's head on the tab list as well. There's a way however, to spawn the player and remove it's entry from the tab list. I have never tried to do this, but there's nothing that some research won't find.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...