-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from kostya-main/main
Система скинов
- Loading branch information
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Настройка системы скинов | ||
|
||
В лаунчере используется проект [authlib-injector](https://github.com/yushijinhun/authlib-injector) для работы кастомной системы скинов и авторизации. | ||
Система скинов будет работать только при использовании авторизацию через `DB` или `Json`. | ||
|
||
::: warning Важно | ||
В нынешней версии лаунчера моделька игрока на главном экране не синхронизирована с системой. Моделька постоянно будет в скине Steve | ||
::: | ||
## Настройка LauncherServer | ||
|
||
Для корректной работы нужно указать в `LauncherServerConfig.hjson` **все домены**, от куда будет производиться загрузка скинов. | ||
```hjson | ||
injector: | ||
{ | ||
skinDomains: [ | ||
".discordapp.net", | ||
"i.imgur.com" | ||
] | ||
} | ||
``` | ||
::: info Для справки: | ||
Если в начали домена стоит `.` это говорит что разрешены все поддомены. | ||
Если в **начале нет** `.` это говорит что разрешён только этот домен. | ||
::: | ||
|
||
## Настройка при авторизации `DB` | ||
|
||
Все файлы должны быть размещены на сторонем хостинге или сайте предоставляющий прямую ссылку на файл. | ||
Данные ссылки должны быть расположены в столбце `skinURL` или `capeURL` в зависимости от типа файла. | ||
|
||
## Настройка при авторизации `Json` | ||
|
||
Вам нужно будет реализовать запросы `/hasJoined`, `/profile` по схеме описанной в [этой](../for-developers/json-auth.md) статье. |