Correct default skin size limit to 64

This commit is contained in:
Evan Goode 2025-04-04 20:44:47 -04:00
parent bdcb791b88
commit 5b8188c202
2 changed files with 2 additions and 2 deletions

View File

@ -197,7 +197,7 @@ func DefaultConfig() Config {
BufferItems: 64,
},
SignPublicKeys: true,
SkinSizeLimit: 128,
SkinSizeLimit: 64,
StateDirectory: GetDefaultStateDirectory(),
TokenExpireSec: 0,
TokenStaleSec: 0,

View File

@ -101,7 +101,7 @@ Other available options:
- `MinPasswordLength`: Users will not be able to choose passwords shorter than this length. Integer. Default value: `8`.
- `DefaultPreferredLanguage`: Default "preferred language" for user accounts. The Minecraft client expects an account to have a "preferred language", but I have no idea what it's used for. Choose one of the two-letter codes from [https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html](https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html). String. Default value: `"en"`.
- `SkinSizeLimit`: The maximum width, in pixels, of a user-uploaded skin or cape. Normally, Minecraft skins are 128 × 128 pixels, and capes are 128 × 64 pixels. You can raise this limit to support high resolution skins and capes, but you will also need a client-side mod like [MCCustomSkinLoader](https://github.com/xfl03/MCCustomSkinLoader) (untested). Set to `0` to remove the limit entirely, but the size of the skin file will still be limited by `BodyLimit`. Integer. Default value: `128`.
- `SkinSizeLimit`: The maximum width, in pixels, of a user-uploaded skin or cape. Normally, Minecraft skins are 64 × 64 pixels, and capes are 64 × 32 pixels. You can raise this limit to support high resolution skins and capes, but you will also need a client-side mod like [MCCustomSkinLoader](https://github.com/xfl03/MCCustomSkinLoader) (untested). Set to `0` to remove the limit entirely, but the size of the skin file will still be limited by `BodyLimit`. The dimensions of a skin must always be a multiple of 64 × 64 or 64 × 32 pixels, and the dimensions of a cape must always be a multiple of 64 × 32. Integer. Default value: `64`.
- `SignPublicKeys`: Whether to sign players' public keys. Boolean. Default value: `true`.
- Must be enabled if you want to support servers with `enforce-secure-profile=true` in server.properties.
- Limits servers' ability to forge messages from players.