feat allow virtual servers on limbo #380
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refactors the handling of "limbo" servers in the authentication system, switching from a simple list to a
Multimapstructure keyed by forced host. This enables more flexible server selection and configuration, particularly for multi-host setups. The changes affect configuration, server registration, and various logic checks throughout the codebase.Configuration and Data Structure Changes:
LIMBOconfiguration key inConfigurationKeys.javais changed from aList<String>to aMultimap<String, String>, allowing limbo servers to be mapped to forced hosts. Default values are updated accordingly.AuthenticServerHandlerclass now manages limbo servers as aMultimap<String, S>instead of aCollection<S>, and registration uses the forced host as a key. [1] [2]API and Method Signature Updates:
ServerHandlerinterface updatesgetLimboServers()to return aMultimap<String, S>, andregisterLimboServernow requires aforcedHostparameter. [1] [2]Logic Adjustments for Limbo Server Checks:
.contains(...)now uses.containsValue(...), reflecting the new multimap structure. This affects event handlers and configuration validation across BungeeCord, Velocity, and Paper platform code. [1] [2] [3] [4] [5] [6]Proxy Data and Server List Serialization:
getLimboServers().values()instead of the previous collection, ensuring all registered limbo servers are included regardless of forced host. [1] [2] [3]Server Selection Logic Enhancement: