ChannelMembershipManager

constructor(channelManager: ChannelManager, logger: Logger, config: ChannelChatFeatureConfig, debug: DebugLogger = DebugLogger.Disabled, hasModerationBypass: (UUID) -> Boolean = ::hasChannelBypassPermission, now: () -> Long = System::currentTimeMillis)(source)

Parameters

hasModerationBypass

Whether a player is exempt from being kicked or banned. Injected rather than read from Bukkit inline so this manager stays testable without a running server.

now

The current time in milliseconds, injected so invitation expiry can be tested.