mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-12 00:47:26 -04:00
Config documentation
This commit is contained in:
parent
68d8f68413
commit
f449b1845d
@ -33,7 +33,6 @@ There is a config file located in:
|
||||
}
|
||||
},
|
||||
"servers": {
|
||||
"selected": "",
|
||||
"entries": {
|
||||
"1": {
|
||||
"id": 1,
|
||||
@ -54,3 +53,53 @@ There is a config file located in:
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## General
|
||||
- `version`: The current version of the config. Used for migration between versions. A new version will be tagged, once a new release of minosoft is there, and the format of the config changed.
|
||||
- `log-level`: Self explaining, valid log levels are defined in [LogLevels.java](/src/main/java/de/bixilon/minosoft/logging/LogLevels.java).
|
||||
- `language`: Self explaining. All values are valid, if the specific language cannot be loaded (or specific strings are not available), `en_US` will be used (as fallback).
|
||||
|
||||
## Network
|
||||
- `fake-network-brand`: Minosoft send its brand to the server. If true, minosoft will say, that we use standard `vanilla`.
|
||||
- `show-lan-servers`: If true, minosoft will listen for lan servers (singleplayer and share to LAN) and show them in the server list.
|
||||
|
||||
## Accounts
|
||||
- `selected`: userId of the current selected account, can be empty
|
||||
- `client-token`: A random uuid (generated at first startup), used as unique identifier for all authentication communication with mojang.
|
||||
- `entries`: A account array:
|
||||
|
||||
### Account
|
||||
```json
|
||||
{
|
||||
"<userId>": {
|
||||
"accessToken": "<access Token>",
|
||||
"userId": "<userId>",
|
||||
"uuid": "<UUID of player with dashes>",
|
||||
"playerName": "<Player name>",
|
||||
"userName": "<Mojang email address>"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Servers
|
||||
- `entries`: A server array:
|
||||
|
||||
### Server
|
||||
```json
|
||||
{
|
||||
"<Server id>": {
|
||||
"id": <Server ID>,
|
||||
"name": "<Server name>",
|
||||
"address": "<Server address>",
|
||||
"favicon": "<Base 64 encoded png>",
|
||||
"version": -1
|
||||
}
|
||||
}
|
||||
```
|
||||
## Download
|
||||
- `url`:
|
||||
- `mappings`: URL for the mappings. This is data generated by [mappingsDownloader.py](/util/mappingsDownloader.py).
|
||||
The URL must contain .tar.gz files named after minecraft versions (e.g. `1.14.4.tar.gz`).
|
||||
|
||||
## Debug
|
||||
- `verify-assets`: If true, minosoft will check the sha1 of every asset. Must be false, if you want to modify assets. (Should be true, can be false, if you want to improve the start time)
|
||||
|
@ -65,7 +65,6 @@ public class LANServerListener {
|
||||
servers.put(sender, server);
|
||||
Platform.runLater(() -> ServerListCell.listView.getItems().add(server));
|
||||
Log.debug(String.format("Discovered new LAN Server: %s", server));
|
||||
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
@ -91,7 +90,6 @@ public class LANServerListener {
|
||||
}
|
||||
servers.inverse().remove(server);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static Server getServerByBroadcast(InetAddress address, byte[] broadcast) {
|
||||
|
@ -17,7 +17,6 @@
|
||||
"entries": {}
|
||||
},
|
||||
"servers": {
|
||||
"selected": "",
|
||||
"entries": {}
|
||||
},
|
||||
"download": {
|
||||
|
@ -1,16 +1,3 @@
|
||||
"""
|
||||
* Minosoft
|
||||
* Copyright (C) 2020 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
"""
|
||||
|
||||
# Minosoft
|
||||
# Copyright (C) 2020 Moritz Zwerger
|
||||
#
|
||||
@ -21,6 +8,14 @@
|
||||
# You should have received a copy of the GNU General Public License along with this program.If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with this program.If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
|
||||
import os
|
||||
import requests
|
||||
|
@ -1,16 +1,3 @@
|
||||
"""
|
||||
* Minosoft
|
||||
* Copyright (C) 2020 Moritz Zwerger
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
* This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
"""
|
||||
|
||||
# Minosoft
|
||||
# Copyright (C) 2020 Moritz Zwerger
|
||||
#
|
||||
@ -21,6 +8,14 @@
|
||||
# You should have received a copy of the GNU General Public License along with this program.If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License along with this program.If not, see <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
# This software is not affiliated with Mojang AB, the original developer of Minecraft.
|
||||
|
||||
import os
|
||||
import requests
|
||||
|
Loading…
x
Reference in New Issue
Block a user