Class SmartFallback
java.lang.Object
net.ME1312.SubServers.Velocity.Library.Fallback.SmartFallback
Smart Fallback Handler Class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addInspector
(FallbackInspector inspector) Add a Fallback Server Inspectorstatic RegisteredServer[]
getDNS
(InboundConnection connection) Grabs the Server that a connection's DNS matchesstatic Map<String,
RegisteredServer> Generates a smart sorted map of fallback servers using a generated confidence scorestatic Map<String,
RegisteredServer> getFallbackServers
(Player player) Generates a smart sorted map of fallback servers using a generated confidence scorestatic RegisteredServer[]
getForcedHosts
(InboundConnection connection) Grabs the Forced Host Server for this connectionvoid
static void
removeInspector
(FallbackInspector inspector) Remove a Fallback Server Inspector
-
Field Details
-
dns_forward
public static boolean dns_forward
-
-
Constructor Details
-
SmartFallback
-
-
Method Details
-
getServer
-
getForcedHosts
Grabs the Forced Host Server for this connection- Parameters:
connection
- Connection to check- Returns:
- Forced Host Servers (or null if there are none)
-
getDNS
Grabs the Server that a connection's DNS matches- Parameters:
connection
- Connection to check- Returns:
- DNS Forward Server
-
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
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
Add a Fallback Server Inspector- Parameters:
inspector
- Inspector
-
removeInspector
Remove a Fallback Server Inspector- Parameters:
inspector
- Inspector
-