All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.summitsystems.springbukkit.support.SpringBukkitSupportConfiguration.kt Maven / Gradle / Ivy

There is a newer version: 0.0.9-beta2
Show newest version
package kr.summitsystems.springbukkit.support

import kr.summitsystems.springbukkit.core.command.CommandTabCompletionProvider
import kr.summitsystems.springbukkit.support.paper.PaperTabCompleter
import org.springframework.beans.factory.config.BeanDefinition
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass
import org.springframework.context.annotation.*

@Configuration
class SpringBukkitSupportConfiguration {

    @ConditionalOnClass(name = ["com.destroystokyo.paper.event.server.AsyncTabCompleteEvent"])
    @Scope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    @Role(BeanDefinition.ROLE_INFRASTRUCTURE)
    fun paperTabCompleter(
        commandTabCompletionProvider: CommandTabCompletionProvider
    ): PaperTabCompleter {
        return PaperTabCompleter(commandTabCompletionProvider)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy