authlib-injector/README.en.md
2020-04-10 20:01:01 +08:00

2.3 KiB

authlib-injector

circle ci license agpl-3.0 language require java 1.8+

authlib-injector enables you to build a Minecraft authentication system offering all the features that genuine Minecraft has.

See the wiki for documents and detailed descriptions.

Download

You can download the latest authlib-injector build from here.

Build

Dependencies: Gradle, JDK 8+

Run:

gradle

Build output can be found in build/libs.

Deploy

The authentication server is required to implement Yggdrasil Server Specification.

Configure Minecraft server with the following JVM parameter:

-javaagent:{/path/to/authlib-injector.jar}={API Root of Authentication Server}

Debug

Print verbose logs

Add the following JVM parameter:

-Dauthlibinjector.debug={types of logs to print}

Types of logs:

  • launch startup of authlib-injector
  • transform bytecode modification
  • config configuration fetching
  • httpd local http server (The local http server acts as a reverse proxy between client and the remote authentication server, which allows authlib-injector to implement enhancements.)
  • authlib logs intercepted from authlib (which contains detailed network communication)

Use , as the separator when specifying multiple types. To print all the logs, set the type to all.

Dump modified classes

Dump the modified classes to current directory with the following JVM parameter:

-Dauthlibinjector.dumpClass=true