BungeeTabListPlus icon indicating copy to clipboard operation
BungeeTabListPlus copied to clipboard

Can't edit icon

Open williambacteria opened this issue 4 years ago • 11 comments

Bungee Version: :Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:9234e50:358 BungeeTabListPlus Version: 3.3.1 Problem: I set text's icon as "- {text: "&a金币: &6¥${viewer vault_balance 1.2}", icon: "default/balance.png", ping: 0, alignment: CENTER}", but the tablist in game doesn't work as well ,the icon is a default icon image

williambacteria avatar Jun 30 '20 01:06 williambacteria

The icons should fix themselves within a few minutes. This can happen if you quickly reconnect to the server a few times. Or when multiple people use the same internet connection to play Minecraft.

The reason why this is happening is that to display the icon the client has to download the texture from Mojang servers. But those servers don't allow downloading the same texture twice within 60 seconds, so the client might have to wait a bit.

CodeCrafter47 avatar Jun 30 '20 07:06 CodeCrafter47

but only one player join the sever , I joined in server many times and wait for long time , the icon didn't download.may this is not a network error?

williambacteria avatar Jun 30 '20 07:06 williambacteria

This is a network error on the client. It will download the icons eventually.

CodeCrafter47 avatar Jun 30 '20 07:06 CodeCrafter47

client download con from mojang not serverhost ?

williambacteria avatar Jun 30 '20 07:06 williambacteria

Yes, the icon is downloaded from mojang.

CodeCrafter47 avatar Jun 30 '20 07:06 CodeCrafter47

how can i download from serverhost ?

williambacteria avatar Jun 30 '20 07:06 williambacteria

You can't. The icon is a skin texture downloaded from mojang servers. While the server sends the url of the texture to the client it cannot point anywhere else as the client will refuse to download the skin if it's not from mojang.com or minecraft.net.

CodeCrafter47 avatar Jun 30 '20 07:06 CodeCrafter47

fine :( ,thank u bro

williambacteria avatar Jun 30 '20 08:06 williambacteria

hello bro ,can u give me the texture's url link to me?I want to edit the url address for client to get the bungeegablistplus texture.

williambacteria avatar Jun 30 '20 08:06 williambacteria

They're in the heads/cache.txt file. Each line represents one icon. The are three values on each line separated by a space. The first is a hash of the image. The second is the one interesting to you. It's a base64 encoded json object containing the url. If you decode it it will e.g. look like this:

{"timestamp":1455623940328,"profileId":"b3b1834535bf4b758e0cdbf0f820656e","profileName":"101111","signatureRequired":true,"textures":{"SKIN":{"url":"http://textures.minecraft.net/texture/14f39a29df598dc8272d1ca592adb05e935ec0bb8658b2b6e0151b92b579e270"}}}

The third value is a cryptographic signature.

BungeeTabListPlus does not validate the json object containg the url or the signature. Those are sent to the client without any checks. So you can make any changes you like to those and BTLP will pass them directly to the client.

CodeCrafter47 avatar Jun 30 '20 09:06 CodeCrafter47

Thank u very much!!

williambacteria avatar Jun 30 '20 09:06 williambacteria