Class VelocityProxy
java.lang.Object
net.minestom.server.extras.velocity.VelocityProxy
Support for Velocity modern forwarding.
Can be enabled by simply calling enable(String)
.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkIntegrity
(@NotNull NetworkBuffer buffer) static void
Enables velocity modern forwarding.static boolean
Gets if velocity modern forwarding is enabled.
-
Field Details
-
PLAYER_INFO_CHANNEL
- See Also:
-
-
Constructor Details
-
VelocityProxy
public VelocityProxy()
-
-
Method Details
-
enable
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
-