FloodgateCompat

Bridge for Floodgate Bedrock player detection.

All Floodgate API access is gated behind isFloodgateLoaded to avoid class-loading errors when Floodgate is not installed. The Floodgate JAR is compileOnly — present on the production server but not bundled in our mod.

Properties

Link copied to clipboard
const val MOD_ID: String

Floodgate mod ID for presence detection.

Functions

Link copied to clipboard
fun isBedrockPlayer(player: ServerPlayer): Boolean

Returns true if the player is connecting via Geyser/Bedrock.

Link copied to clipboard

Returns true if Floodgate is installed on this server.