Obtain GUI Scale From Client

qEclipse

Feedback score
2
Posts
147
Reactions
22
Resources
0
I want to title players' screens with an image, but the image is a different size based on their GUI scale. Is there a way to figure out a player's GUI scale from the server so I can send the appropriate sized image?

Thanks in advance to anyone who takes to the time to respond.
 
Type
Requesting
Provided by
Team
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Itzdlg

Java and Kotlin Developer
Premium
Feedback score
2
Posts
73
Reactions
21
Resources
0
I don't believe that the client shares that information with the server, much like they don't share their key binds with the server. In any case, you could ask in the SpigotMC discord or PaperMC discord, this isn't really the right place.
 

lavaflowglow

Premium
Feedback score
0
Posts
137
Reactions
41
Resources
0
The client sends absolutely no information about gui scale, also the actual displayed image changes based on their screen size so gui scale wouldn't be too helpful
 

Pedro Pagani

Pedro, Software Engineer.
Premium
Feedback score
0
Posts
68
Reactions
27
Resources
2
That data is client side and only client side, only with a custom client to detect that! Like some servers do for some else features... Cosmic etc
 
Top