Class CloudPlayerLinks.GameAuth

java.lang.Object
com.ultikits.ultitools.websocket.CloudPlayerLinks.GameAuth
Enclosing class:
CloudPlayerLinks

public static final class CloudPlayerLinks.GameAuth extends Object
What this server knows about the player's game authentication when the link is created.
Since:
6.3.1
  • Field Details

    • authPlugin

      private final boolean authPlugin
    • authenticated

      private final boolean authenticated
    • accountExists

      private final boolean accountExists
  • Constructor Details

    • GameAuth

      private GameAuth(boolean authPlugin, boolean authenticated, boolean accountExists)
  • Method Details

    • none

      public static CloudPlayerLinks.GameAuth none()
      Reports that no login plugin is involved in this server's authentication.
      Returns:
      the provider: none facts
    • authPlugin

      public static CloudPlayerLinks.GameAuth authPlugin(boolean authenticated, boolean accountExists)
      Reports that a login plugin authenticates players on this server.
      Parameters:
      authenticated - whether the player is currently authenticated by that plugin
      accountExists - whether that plugin already holds an account for this name
      Returns:
      the provider: auth_plugin facts
    • isAuthPlugin

      public boolean isAuthPlugin()
      Returns:
      true when a login plugin is involved
    • authenticated

      public boolean authenticated()
      Returns:
      whether the login plugin has authenticated the player; false for none()
    • accountExists

      public boolean accountExists()
      Returns:
      whether the login plugin already holds an account; false for none()
    • toString

      public String toString()
      Overrides:
      toString in class Object