Document support for all versions of Minecraft

This commit is contained in:
Evan Goode 2025-03-23 20:27:07 -04:00
parent 8333d501d8
commit b201152c5c
2 changed files with 24 additions and 2 deletions

View File

@ -36,6 +36,7 @@ There are many reasons to host your own API server instead of using Mojang's. Yo
- Easy to host: a single Go binary plus a few static assets, no runtime dependencies. See [doc/installation.md](doc/installation.md).
- Highly configurable
- Fast, minimalist, and highly-accessible web interface. JavaScript is used only for cosmetic effects and is not required.
- Support essentially **all versions of Minecraft** ([Late Classic](https://minecraft.wiki/w/Java_Edition_Late_Classic) through present) when using [Fjord Launcher](https://github.com/unmojang/FjordLauncher) (see [doc/usage.md](doc/usage.md))
- Optional: link with one or more [OpenID Connect](https://openid.net/developers/how-connect-works/) providers
- Optional: allow multiple players per user (see [MaxPlayerCount](doc/configuration.md))
- Optional: proxy requests to fallback API servers (see [FallbackAPIServers](doc/configuration.md))

View File

@ -26,6 +26,10 @@ Using Drasl on the client requires a third-party launcher that supports custom A
4. Use the base URL of your Drasl instance (the value of the `BaseURL` configuration option) as the URL for the API server, for example `https://drasl.example.com`.
5. Click "OK".
For Minecraft 1.6.4 and earlier, make sure "Enable online fixes" is checked in Settings→Minecraft→Tweaks→Legacy settings (this is the default in Fjord Launcher).
For Minecraft 1.7.2 and later, make sure authlib-injector is installed on the instance (Edit instance→Version→Install authlib-injector). By default, Fjord Launcher will automatically prompt to install authlib-injector when it's needed.
### HMCL
1. Go to the "Account List" view by clicking the account at the top of the sidebar.
@ -115,11 +119,28 @@ java -Xmx1024M -Xms1024M \
-jar server.jar nogui
```
### Minecraft 1.15.2 and earlier
### Minecraft 1.7.2 through 1.15.2
Refer to the authlib-injector documentation on setting up a server: [https://github.com/yushijinhun/authlib-injector/blob/develop/README.en.md#deploy](https://github.com/yushijinhun/authlib-injector/blob/develop/README.en.md#deploy).
Alternatively, you can patch your server to use a newer version of Mojang's authlib that supports the arguments for custom API servers. Replace the files under `com/mojang/authlib` in your `server.jar` with the files in [authlib-1.6.25.jar](https://libraries.minecraft.net/com/mojang/authlib/1.6.25/authlib-1.6.25.jar).
Alternatively, you can patch your server to use a newer version of Mojang's authlib that supports the `-Dminecraft.api.*.host` arguments described above. Replace the files under `com/mojang/authlib` in your `server.jar` with the files in [authlib-1.6.25.jar](https://libraries.minecraft.net/com/mojang/authlib/1.6.25/authlib-1.6.25.jar).
### [Late Classic](https://minecraft.wiki/w/Java_Edition_Late_Classic), Alpha, Beta, etc. through Minecraft 1.6.4
Use [OnlineModeFix](https://github.com/craftycodie/OnlineModeFix) and start the server with the `-Dminecraft.api.*.host` arguments described above. For example, the full command you use to start the server might be:
```
java -Xmx1024M -Xms1024M \
-Dminecraft.api.env=custom \
-Dminecraft.api.auth.host=https://drasl.example.com/auth \
-Dminecraft.api.account.host=https://drasl.example.com/account \
-Dminecraft.api.session.host=https://drasl.example.com/session \
-Dminecraft.api.services.host=https://drasl.example.com/services \
-Djava.protocol.handler.pkgs=gg.codie.mineonline.protocol \
-cp server.jar:OnlineModeFix.jar \
net.minecraft.server.MinecraftServer \
nogui
```
## Default skins