Class BungeeCordProxy

java.lang.Object
net.minestom.server.extras.bungee.BungeeCordProxy

@Deprecated(forRemoval=true) public final class BungeeCordProxy extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
BungeeCord forwarding support. Enabling BungeeGuard support with setBungeeGuardTokens(Set) helps to secure the server, but managing your firewall is still recommended.

Please consider using VelocityProxy instead.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Enables bungee IP forwarding.
    static Set<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks whether BungeeGuard authentication is enabled.
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets if bungee IP forwarding is enabled.
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks whether a token is one of the valid BungeeGuard tokens
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the tokens used by BungeeGuard authentication.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BungeeCordProxy

      public BungeeCordProxy()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • enable

      public static void enable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables bungee IP forwarding.
    • isEnabled

      public static boolean isEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets if bungee IP forwarding is enabled.
      Returns:
      true if forwarding is enabled
    • setBungeeGuardTokens

      public static void setBungeeGuardTokens(@Nullable @Nullable Set<String> tokens)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the tokens used by BungeeGuard authentication. Setting the tokens to a not-null value enables BungeeGuard authentication, and setting it to a null value disables BungeeGuard authentication.
      Parameters:
      tokens - The new BungeeGuard authentication tokens
    • isBungeeGuardEnabled

      public static boolean isBungeeGuardEnabled()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether BungeeGuard authentication is enabled.
      Returns:
      Whether BungeeGuard authentication is enabled
    • getBungeeGuardTokens

      public static Set<String> getBungeeGuardTokens()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isValidBungeeGuardToken

      public static boolean isValidBungeeGuardToken(String token)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether a token is one of the valid BungeeGuard tokens
      Parameters:
      token - The token to test
      Returns:
      Whether the token is a valid BungeeGuard token