Bungee

@Conditional(value = [RequiresBungee::class])
class Bungee(val plugin: BungeePlugin, @Lazy val vitalListeners: List<VitalListener.Bungee>) : VitalModule

Constructors

Link copied to clipboard
constructor(plugin: BungeePlugin, @Lazy vitalListeners: List<VitalListener.Bungee>)

Properties

Link copied to clipboard

All info metadata for this class, indexed by their unique Class. Can be initialized with VitalCoreModule.getRequiredAnnotation or VitalCoreModule.getRequiredAnnotations.

Link copied to clipboard
val logger: Logger
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
lateinit var vitalPlugin: VitalPlugin

Functions

Link copied to clipboard
fun disable(vitalPlugin: VitalPlugin)

Disables this module by calling the onDisable lifecycle function. The module is only disabled if it is currently enabled.

Link copied to clipboard
fun enable(vitalPlugin: VitalPlugin)

Enables this module by calling the onEnable lifecycle function. The module is only enabled if it is not already enabled.

Link copied to clipboard
open fun <T : Annotation> getInfo(type: Class<T>): T

Gets the info annotation for the given type. If no info annotation was found, throws RuntimeException.

Link copied to clipboard
open fun onDisable()

Lifecycle function; called when this module is disabled. Override this function to for example perform teardown logic for your module.

Link copied to clipboard
open override fun onEnable()

Lifecycle function; called when this module is enabled. Override this function to for example perform initialization logic for your module.

Link copied to clipboard
@ConditionalOnMissingBean
@Bean
fun vitalBStatsInitialization(plugin: BungeePlugin, vitalCoreConfigurationProperties: VitalCoreConfigurationProperties): VitalBStatsInitialization.Bungee
Link copied to clipboard
@ConditionalOnMissingBean
@Bean
fun vitalShutdownHandler(vitalPlugin: VitalPlugin): VitalShutdownHandler.Bungee