Class VelocityProxy

java.lang.Object
net.minestom.server.extras.velocity.VelocityProxy

public final class VelocityProxy extends Object
Support for Velocity modern forwarding.

Can be enabled by simply calling enable(String).

  • Field Details

  • Constructor Details

    • VelocityProxy

      public VelocityProxy()
  • Method Details

    • enable

      public static void enable(@NotNull @NotNull 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

      public static boolean checkIntegrity(@NotNull @NotNull NetworkBuffer buffer)