Class MojangAuth

java.lang.Object
net.minestom.server.extras.MojangAuth

public final class MojangAuth extends Object
  • Field Details

    • AUTH_URL

      public static final String AUTH_URL
  • Constructor Details

    • MojangAuth

      public MojangAuth()
  • Method Details

    • init

      public static void init()
      Enables mojang authentication on the server.

      Be aware that enabling a proxy will make Mojang authentication ignored.

    • isEnabled

      public static boolean isEnabled()
    • getKeyPair

      @Nullable public static @Nullable KeyPair getKeyPair()