Class MojangAuth

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

@Deprecated(forRemoval=true) public final class MojangAuth extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Enables mojang authentication on the server.
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MojangAuth

      public MojangAuth()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • init

      public static void init()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables mojang authentication on the server.

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

    • isEnabled

      public static boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getKeyPair

      @Nullable public static @Nullable KeyPair getKeyPair()
      Deprecated, for removal: This API element is subject to removal in a future version.