Warn if username is invalid when creating a offline account. 在离线账户创建时对不合法的账户名做出警告 (#2309)

* Fix #2258

* Fix checkstyle

* Merge official branch into current branch and fix checkstyle
This commit is contained in:
Burning_TNT
2023-07-07 15:15:50 +08:00
committed by GitHub
parent 623c54cf58
commit 29582f6c50
5 changed files with 55 additions and 27 deletions

View File

@@ -130,6 +130,10 @@ account.methods.microsoft.snapshot=你正在使用非官方构建的 HMCL
account.methods.microsoft.snapshot.website=官方网站
account.methods.offline=离线模式
account.methods.offline.name.special_characters=建议使用英文字符、数字以及下划线命名
account.methods.offline.name.invalid=正常情况下,游戏用户名只能包括英文字符、数字以及下划线,且长度不能超过 16 个字符。\n\
一些合法的用户名HuangYuhuang_YuHuang_Yu_123\n\
一些不合法的用户名黄鱼Huang YuHuang-Yu_%%%Huang_Yu_hello_world_hello_world。\n\
如果你相信服务器端有相应的 Mod 或插件来解除此限制,你可以忽略本警告。
account.methods.offline.uuid=UUID
account.methods.offline.uuid.hint=UUID 是 Minecraft 对玩家角色的唯一标识符,每个启动器生成 UUID 的方式可能不同。通过修改 UUID 选项至原启动器所生成的 UUID你可以保证在切换启动器后游戏还能将你的游戏角色识别为给定 UUID 所对应的角色从而保留原来角色的背包物品。UUID 选项为高级选项,除非你知道你在做什么,否则你不需要调整该选项。
account.methods.offline.uuid.malformed=格式错误