AltitudeMapdev / Issues

Issues with Altitude? Report them here.
1 stars 0 forks source link

Owner field sometimes displays "Loading" #99

Closed gcflames5 closed 10 years ago

gcflames5 commented 10 years ago

Great job molen

AustinLMayes commented 10 years ago

MOMMY IM IN THE PICTURE!

molenzwiebel commented 10 years ago

Intentional behavior. Happens when the name of the owner is looked up, Loading... is shown while the request is going. If the request fails, Loading... stays until the scoreboard is refreshed (flag toggle, lock). Might change to not show any owner if it is not loaded, although that will make a name suddenly appear is the Mojang API is slow.

058c37a272bed3464d47f0b01038a16a commented 10 years ago

Cache UUID and names?

molenzwiebel commented 10 years ago

I do, current setting is 10 minutes and UUID -> Name first checks the players that are online. Note that it probably wasn't the limit the Mojang API has, as that is 600 requests every 5 minutes (and I can't imagine us doing 600 requests when we cache).

AustinLMayes commented 10 years ago

Maybe if it fails show something besides Loading... ?

gcflames5 commented 10 years ago

Well I don't believe the cache actually works because I logged into the world for the first time, I saw my name, however, every time after that it said "Loading..." regardless of the flags I changed or if i rejoined the world