Enum Class PlayerInfoForwarding
- All Implemented Interfaces:
Serializable,Comparable<PlayerInfoForwarding>,Constable
Supported player info forwarding methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses BungeeGuard-style secure IP forwarding, which works by sending a shared secret token in the handshake.Forwards player information using the legacy BungeeCord IP forwarding system.Forwards player information using Velocity's modern forwarding system, based on a signed public key and identity chain.No player information is forwarded. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerInfoForwardingReturns the enum constant of this class with the specified name.static PlayerInfoForwarding[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No player information is forwarded. Backend servers will treat all players as offline-mode users with random UUIDs and no skin or IP information.This mode is the safest for servers that do not support Velocity's forwarding, but it disables any functionality dependent on online UUIDs or skins.
-
LEGACY
Forwards player information using the legacy BungeeCord IP forwarding system. This requires backend servers to have IP forwarding enabled and to use a compatible login handler (such as in Paper or BungeeCord-compatible forks).Use this if your backend servers do not support Velocity’s modern forwarding, but do support BungeeCord-style forwarding.
-
BUNGEEGUARD
Uses BungeeGuard-style secure IP forwarding, which works by sending a shared secret token in the handshake. This helps secure legacy IP forwarding without modifying the backend server.Requires BungeeGuard (or a compatible plugin) to be installed and configured on backend servers.
-
MODERN
Forwards player information using Velocity's modern forwarding system, based on a signed public key and identity chain.This is the most secure and recommended method, requiring backend support for Velocity’s forwarding protocol (such as in Paper 1.13+ with Velocity forwarding enabled).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-