Fix name being lowercased by HyPixel

This commit is contained in:
nea
2023-06-11 02:50:01 +02:00
parent a36c8f1c0e
commit db8e3640e8
3 changed files with 6 additions and 5 deletions

View File

@@ -46,7 +46,8 @@ class ProfileViewer(
source.sendError(Text.translatable("firmament.pv.noplayer", name))
return@launch
}
val names = mapOf(uuid to (Routes.getPlayerNameForUUID(uuid) ?: name))
val name = Routes.getPlayerNameForUUID(uuid) ?: name
val names = mapOf(uuid to (name))
val data = Routes.getAccountData(uuid)
if (data == null) {
source.sendError(Text.translatable("firmament.pv.noprofile", name))