Class VelocityProxy
java.lang.Object
net.minestom.server.extras.velocity.VelocityProxy
public final class VelocityProxy
extends java.lang.Object
Support for Velocity modern forwarding.
Can be enabled by simply calling enable(String)
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PLAYER_INFO_CHANNEL
-
Constructor Summary
Constructors Constructor Description VelocityProxy()
-
Method Summary
Modifier and Type Method Description static boolean
checkIntegrity(BinaryReader reader)
static void
enable(java.lang.String secret)
Enables velocity modern forwarding.static boolean
isEnabled()
Gets if velocity modern forwarding is enabled.static java.net.InetAddress
readAddress(BinaryReader reader)
static PlayerSkin
readSkin(BinaryReader reader)
-
Field Details
-
PLAYER_INFO_CHANNEL
public static final java.lang.String PLAYER_INFO_CHANNEL- See Also:
- Constant Field Values
-
-
Constructor Details
-
VelocityProxy
public VelocityProxy()
-
-
Method Details
-
enable
public static void enable(@NotNull java.lang.String secret)Enables velocity modern forwarding.- Parameters:
secret
- the forwarding secret, be sure to do not hardcode it in your code but to retrieve it from a file or anywhere else safe
-
isEnabled
public static boolean isEnabled()Gets if velocity modern forwarding is enabled.- Returns:
- true if velocity modern forwarding is enabled
-
checkIntegrity
-
readAddress
-
readSkin
-