java.lang.Object
net.ME1312.SubServers.Velocity.Library.Fallback.SmartFallback

public class SmartFallback extends Object
Smart Fallback Handler Class
  • Field Details

    • dns_forward

      public static boolean dns_forward
  • Constructor Details

  • Method Details

    • getServer

      public void getServer(PlayerChooseInitialServerEvent e)
    • getForcedHosts

      public static RegisteredServer[] getForcedHosts(InboundConnection connection)
      Grabs the Forced Host Server for this connection
      Parameters:
      connection - Connection to check
      Returns:
      Forced Host Servers (or null if there are none)
    • getDNS

      public static RegisteredServer[] getDNS(InboundConnection connection)
      Grabs the Server that a connection's DNS matches
      Parameters:
      connection - Connection to check
      Returns:
      DNS Forward Server
    • getFallbackServers

      public static Map<String,RegisteredServer> getFallbackServers()
      Generates a smart sorted map of fallback servers using a generated confidence score
      Returns:
      Fallback Server Map (with legacy bungee case-sensitive keys)
    • getFallbackServers

      public static Map<String,RegisteredServer> getFallbackServers(Player player)
      Generates a smart sorted map of fallback servers using a generated confidence score
      Parameters:
      player - Player that is requesting fallback servers
      Returns:
      Fallback Server Map (with legacy bungee case-sensitive keys)
    • addInspector

      public static void addInspector(FallbackInspector inspector)
      Add a Fallback Server Inspector
      Parameters:
      inspector - Inspector
    • removeInspector

      public static void removeInspector(FallbackInspector inspector)
      Remove a Fallback Server Inspector
      Parameters:
      inspector - Inspector