Update root.tmpl with new usage docs

This commit is contained in:
Evan Goode 2025-03-23 20:42:13 -04:00
parent 49ddfa6f7f
commit 258abe0df2
2 changed files with 21 additions and 3 deletions

View File

@ -22,7 +22,7 @@ Using Drasl on the client requires a third-party launcher that supports custom A
1. Click your account in the top right and select "Manage Accounts...".
2. Click "Add authlib-injector" in the right-hand sidebar.
3. Enter your player name and the password for your Drasl account.
3. Enter your player name and your Drasl password or Minecraft Token.
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".

View File

@ -61,7 +61,7 @@
</li>
<li>Click "Add authlib-injector" in the right-hand sidebar.</li>
<li>
Enter your player name and password, and use
Enter your player name and your {{ .App.Config.ApplicationName }} password or Minecraft Token, and use
<a href="{{ .App.AuthlibInjectorURL }}">{{ .App.AuthlibInjectorURL }}</a>
for the URL. Click "OK".
</li>
@ -141,7 +141,7 @@ java -Xmx1024M -Xms1024M \
-Dminecraft.api.services.host={{ .App.ServicesURL }} \
-jar server.jar nogui</pre>
<h4>Minecraft 1.15.2 and earlier</h4>
<h4>Minecraft 1.7.2 through 1.15.2</h4>
<p>
Refer to the authlib-injector documentation on setting up a server:
@ -155,5 +155,23 @@ java -Xmx1024M -Xms1024M \
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 <code>com/mojang/authlib</code> in your <code>server.jar</code> with the files in <a href="https://libraries.minecraft.net/com/mojang/authlib/1.6.25/authlib-1.6.25.jar">authlib-1.6.25.jar</a>.
</p>
<h4><a href="https://minecraft.wiki/w/Java_Edition_Late_Classic">Late Classic</a>, Alpha, Beta, etc. through Minecraft 1.6.4</h4>
<p>
Use <a href="https://github.com/craftycodie/OnlineModeFix">OnlineModeFix</a> and start the server with the <code>-Dminecraft.api.*.host</code> arguments described above. For example, the full command you use to start the server might be:
<pre style="word-wrap: break-word; white-space: pre-wrap; overflow-x: auto">
java -Xmx1024M -Xms1024M \
-Dminecraft.api.env=custom \
-Dminecraft.api.auth.host={{ .App.AuthURL }} \
-Dminecraft.api.account.host={{ .App.AccountURL }} \
-Dminecraft.api.session.host={{ .App.SessionURL }} \
-Dminecraft.api.services.host={{ .App.ServicesURL }} \
-Djava.protocol.handler.pkgs=gg.codie.mineonline.protocol \
-cp server.jar:OnlineModeFix.jar \
net.minecraft.server.MinecraftServer \
nogui</pre>
</p>
{{ template "footer" . }}
{{ end }}