Class BungeeCordProxy
java.lang.Object
net.minestom.server.extras.bungee.BungeeCordProxy
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenable()Enables bungee IP forwarding.static booleanChecks whether BungeeGuard authentication is enabled.static booleanGets if bungee IP forwarding is enabled.static booleanisValidBungeeGuardToken(@NotNull String token) Checks whether a token is one of the valid BungeeGuard tokensstatic voidsetBungeeGuardTokens(@Nullable Set<String> tokens) Sets the tokens used by BungeeGuard authentication.
-
Constructor Details
-
BungeeCordProxy
public BungeeCordProxy()
-
-
Method Details
-
enable
public static void enable()Enables bungee IP forwarding. -
isEnabled
public static boolean isEnabled()Gets if bungee IP forwarding is enabled.- Returns:
- true if forwarding is enabled
-
setBungeeGuardTokens
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()Checks whether BungeeGuard authentication is enabled.- Returns:
- Whether BungeeGuard authentication is enabled
-
isValidBungeeGuardToken
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
-