spark icon indicating copy to clipboard operation
spark copied to clipboard

Use Bukkit#getName() for server name

Open powercasgamer opened this issue 1 year ago • 1 comments

Paper (1.20.6+) Before: firefox_W3qNuFf7p9

Paper After: firefox_g9RutfYRN8

Spigot: firefox_UZIQFJuCmO

Maybe need to check if the version contains Spigot then use 'Spigot' as the server name? But imho Spigot..

powercasgamer avatar Jun 22 '24 20:06 powercasgamer

This would fix the existing issue on 1.21. LGTM

EterNityCH avatar Jun 29 '24 23:06 EterNityCH

Unfortunately the server type string is used to determine which mappings to use -- https://github.com/lucko/spark-mappings/blob/master/dist/mappings.json#L3

Instead could we incorporate the server brand into the version string?

lucko avatar Jul 04 '24 19:07 lucko

Unfortunately the server type string is used to determine which mappings to use -- lucko/spark-mappings@master/dist/mappings.json#L3

Instead could we incorporate the server brand into the version string?

Something like this? Paper: firefox_5UoVDQtlul

Spigot: firefox_VOL2Rxroeb

Purpur: firefox_Zj6ROE5mgr

~~I'm not actually sure how it'll look on older versions. Perhaps a version check? Or not bother making it look good on <1.20.5?~~ Paper 1.19.4: firefox_BDh75ytoRe

~~For Spigot we could also check if the string contains "Spigot" and then just not add it or something.~~

powercasgamer avatar Jul 07 '24 13:07 powercasgamer

Decided to just add a brand field separate from name so we can show it nicely :)

https://github.com/lucko/spark-viewer/commit/568817f36076bbf596e2c782ba667aece4bdb299

Thank you for the PR!

lucko avatar Jul 07 '24 19:07 lucko