From 258abe0df2f2f8fdb3cad905daab52ea195f161a Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Sun, 23 Mar 2025 20:42:13 -0400 Subject: [PATCH] Update root.tmpl with new usage docs --- doc/usage.md | 2 +- view/root.tmpl | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/doc/usage.md b/doc/usage.md index c47f3f2..03d095a 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -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". diff --git a/view/root.tmpl b/view/root.tmpl index ba7c870..200b42d 100644 --- a/view/root.tmpl +++ b/view/root.tmpl @@ -61,7 +61,7 @@
  • Click "Add authlib-injector" in the right-hand sidebar.
  • - Enter your player name and password, and use + Enter your player name and your {{ .App.Config.ApplicationName }} password or Minecraft Token, and use {{ .App.AuthlibInjectorURL }} for the URL. Click "OK".
  • @@ -141,7 +141,7 @@ java -Xmx1024M -Xms1024M \ -Dminecraft.api.services.host={{ .App.ServicesURL }} \ -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: @@ -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 com/mojang/authlib in your server.jar with the files in authlib-1.6.25.jar.

    +

    Late Classic, Alpha, Beta, etc. through Minecraft 1.6.4

    + +

    + Use 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={{ .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
    +

    + {{ template "footer" . }} {{ end }}