kr.summitsystems.springbukkit.support.SpringBukkitSupportConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-bukkit-support Show documentation
Show all versions of spring-bukkit-support Show documentation
Springframework based Bukkit plugin development kit.
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