Rename package

This commit is contained in:
redtea committed 2024-07-06 19:49:44 +03:00
1 parent de48207907
commit 5549235e1c
177 files changed
+469 -469

No files matched your search

+2 -2
View File
@@ -10,8 +10,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-architecture"
val globalName = "kotlinbukkitkit-architecture"
val globalArtifactId = "kbk-architecture"
val globalName = "kbk-architecture"
repositories {
mavenCentral()
@@ -5,12 +5,12 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture
package tech.carcadex.kbk.architecture
import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.Lifecycle
import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.LifecycleEvent
import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.LifecycleListener
import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.PluginLifecycleListener
import tech.carcadex.kbk.architecture.lifecycle.Lifecycle
import tech.carcadex.kbk.architecture.lifecycle.LifecycleEvent
import tech.carcadex.kbk.architecture.lifecycle.LifecycleListener
import tech.carcadex.kbk.architecture.lifecycle.PluginLifecycleListener
import org.bukkit.plugin.java.JavaPlugin
import java.util.concurrent.ConcurrentHashMap
@@ -5,9 +5,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture
package tech.carcadex.kbk.architecture
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import org.bukkit.Bukkit
import org.bukkit.event.EventHandler
import org.bukkit.event.HandlerList
@@ -5,9 +5,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI.
*/
package tech.carcadex.kotlinbukkitkit.architecture.extensions
package tech.carcadex.kbk.architecture.extensions
import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin
import tech.carcadex.kbk.architecture.KotlinPlugin
import org.bukkit.plugin.Plugin
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KClass
@@ -5,7 +5,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.extensions
package tech.carcadex.kbk.architecture.extensions
import org.bukkit.plugin.Plugin
@@ -5,7 +5,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.lifecycle
package tech.carcadex.kbk.architecture.lifecycle
/**
* Holds a lifecycle listener class and its priority
@@ -5,10 +5,10 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.lifecycle
package tech.carcadex.kbk.architecture.lifecycle
import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kbk.architecture.KotlinPlugin
import tech.carcadex.kbk.architecture.extensions.WithPlugin
/**
* Class that listen to Lifecycle from a [KotlinPlugin]
@@ -5,7 +5,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.lifecycle
package tech.carcadex.kbk.architecture.lifecycle
public enum class LifecycleEvent { LOAD, ENABLE, DISABLE, CONFIG_RELOAD, ALL_CONFIG_RELOAD }
@@ -5,9 +5,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.lifecycle
package tech.carcadex.kbk.architecture.lifecycle
import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin
import tech.carcadex.kbk.architecture.KotlinPlugin
public inline fun <reified T : PluginLifecycleListener> KotlinPlugin.getOrInsertGenericLifecycle(
priority: Int,
+2 -2
View File
@@ -9,8 +9,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-commands"
val globalName = "kotlinbukkitkit-commands"
val globalArtifactId = "kbk-commands"
val globalName = "kbk-commands"
repositories {
mavenCentral()
@@ -1,7 +1,7 @@
package tech.carcadex.kotlinbukkitkit.commands
package tech.carcadex.kbk.commands
import org.bukkit.plugin.Plugin
import tech.carcadex.kotlinbukkitkit.commands.dsl.builder.simpleCommand
import tech.carcadex.kbk.commands.dsl.builder.simpleCommand
fun Plugin.cmd() {
simpleCommand("test") {
@@ -1,7 +1,7 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl
package tech.carcadex.kbk.commands.dsl
import org.bukkit.command.CommandSender
import tech.carcadex.kotlinbukkitkit.commands.service.MessagesService
import tech.carcadex.kbk.commands.service.MessagesService
/**
* Interface for SubCommand and Command
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl
package tech.carcadex.kbk.commands.dsl
/**
* Class that contains command data
@@ -0,0 +1,7 @@
package tech.carcadex.kbk.commands.dsl
import tech.carcadex.kbk.commands.dsl.Command
interface CommandNode : Command {
fun add(command: Command)
}
@@ -1,12 +1,12 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl
package tech.carcadex.kbk.commands.dsl
import org.bukkit.Bukkit
import org.bukkit.Material
import org.bukkit.OfflinePlayer
import org.bukkit.World
import org.bukkit.entity.Player
import tech.carcadex.kotlinbukkitkit.commands.exceptions.ArgumentNotFoundException
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.exceptions.ArgumentNotFoundException
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
fun ExecutorContext.string(index: Int): String = argument(index) ?: throw ArgumentNotFoundException(index)
fun ExecutorContext.stringOrNull(index: Int): String? = argument(index)
@@ -1,8 +1,8 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl
package tech.carcadex.kbk.commands.dsl
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
import tech.carcadex.kotlinbukkitkit.commands.exceptions.NotPlayerException
import tech.carcadex.kbk.commands.exceptions.NotPlayerException
class ExecutorContext(val sender: CommandSender, val args: Array<String>) {
val player: Player
@@ -1,19 +1,19 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl.builder
package tech.carcadex.kbk.commands.dsl.builder
import org.bukkit.command.CommandSender
import org.bukkit.plugin.Plugin
import tech.carcadex.kotlinbukkitkit.commands.dsl.Command
import tech.carcadex.kotlinbukkitkit.commands.dsl.CommandContext
import tech.carcadex.kotlinbukkitkit.commands.dsl.ExecutorContext
import tech.carcadex.kotlinbukkitkit.commands.dsl.leaf.CommandLeaf
import tech.carcadex.kotlinbukkitkit.commands.dsl.node.CommandNodeImpl
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kotlinbukkitkit.commands.exceptions.LeafCommandHasNotExecutorException
import tech.carcadex.kotlinbukkitkit.commands.manager.CommandManagerInternal
import tech.carcadex.kotlinbukkitkit.commands.manager.commandManager
import tech.carcadex.kotlinbukkitkit.commands.manager.commandManagerInternal
import tech.carcadex.kotlinbukkitkit.commands.register.CommandRegister
import tech.carcadex.kotlinbukkitkit.commands.service.TabCompleteService
import tech.carcadex.kbk.commands.dsl.Command
import tech.carcadex.kbk.commands.dsl.CommandContext
import tech.carcadex.kbk.commands.dsl.ExecutorContext
import tech.carcadex.kbk.commands.dsl.leaf.CommandLeaf
import tech.carcadex.kbk.commands.dsl.node.CommandNodeImpl
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.exceptions.LeafCommandHasNotExecutorException
import tech.carcadex.kbk.commands.manager.CommandManagerInternal
import tech.carcadex.kbk.commands.manager.commandManager
import tech.carcadex.kbk.commands.manager.commandManagerInternal
import tech.carcadex.kbk.commands.register.CommandRegister
import tech.carcadex.kbk.commands.service.TabCompleteService
class CommandBuilder(
val context: CommandContext,
@@ -1,8 +1,8 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl.builder
package tech.carcadex.kbk.commands.dsl.builder
import org.bukkit.plugin.Plugin
import tech.carcadex.kotlinbukkitkit.commands.dsl.ExecutorContext
import tech.carcadex.kotlinbukkitkit.commands.register.CommandRegister
import tech.carcadex.kbk.commands.dsl.ExecutorContext
import tech.carcadex.kbk.commands.register.CommandRegister
fun Plugin.command(name: String, invoke: CommandBuilder.() -> Unit) {
@@ -1,11 +1,11 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl.leaf
package tech.carcadex.kbk.commands.dsl.leaf
import org.bukkit.command.CommandSender
import tech.carcadex.kotlinbukkitkit.commands.dsl.Command
import tech.carcadex.kotlinbukkitkit.commands.dsl.CommandContext
import tech.carcadex.kotlinbukkitkit.commands.dsl.ExecutorContext
import tech.carcadex.kotlinbukkitkit.commands.exceptions.ArgumentNotFoundException
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.dsl.Command
import tech.carcadex.kbk.commands.dsl.CommandContext
import tech.carcadex.kbk.commands.dsl.ExecutorContext
import tech.carcadex.kbk.commands.exceptions.ArgumentNotFoundException
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
class CommandLeaf(
override val context: CommandContext,
@@ -1,12 +1,12 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl.node
package tech.carcadex.kbk.commands.dsl.node
import org.bukkit.command.CommandSender
import tech.carcadex.kotlinbukkitkit.commands.dsl.Command
import tech.carcadex.kotlinbukkitkit.commands.dsl.CommandContext
import tech.carcadex.kotlinbukkitkit.commands.dsl.CommandNode
import tech.carcadex.kotlinbukkitkit.commands.dsl.ExecutorContext
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kotlinbukkitkit.commands.service.MessagesService
import tech.carcadex.kbk.commands.dsl.Command
import tech.carcadex.kbk.commands.dsl.CommandContext
import tech.carcadex.kbk.commands.dsl.CommandNode
import tech.carcadex.kbk.commands.dsl.ExecutorContext
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.service.MessagesService
class CommandNodeImpl(
override val context: CommandContext,
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
class ArgumentNotFoundException(index: Int) : NoSuchElementException("Argument with index $index not found! Args array out of bounds") {
}
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
open class CommandExecuteException(val messageTag: String) : RuntimeException() {
}
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
class LeafCommandHasNotExecutorException(commandName: String)
: IllegalArgumentException("Command $commandName has not subcommands or default executor!") {
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
class NotPlayerException() : CommandExecuteException(messageTag = "#for-player-only") {
}
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
class UnknownCompleteException(val msg: String) : RuntimeException(msg) {
}
@@ -1,3 +1,3 @@
package tech.carcadex.kotlinbukkitkit.commands.exceptions
package tech.carcadex.kbk.commands.exceptions
class UnsupportedTypeException(msg: String) : RuntimeException(msg)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.extensions
package tech.carcadex.kbk.commands.extensions
import org.bukkit.command.CommandSender
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.manager
package tech.carcadex.kbk.commands.manager
import org.bukkit.command.CommandSender
import org.bukkit.plugin.Plugin
@@ -1,18 +1,18 @@
package tech.carcadex.kotlinbukkitkit.commands.manager
package tech.carcadex.kbk.commands.manager
import org.bukkit.command.CommandExecutor
import org.bukkit.command.CommandSender
import org.bukkit.command.TabCompleter
import org.bukkit.plugin.Plugin
import tech.carcadex.kotlinbukkitkit.commands.reflection.CommandParams
import tech.carcadex.kotlinbukkitkit.commands.reflection.Parser
import tech.carcadex.kotlinbukkitkit.commands.reflection.Parser.paramsFromAnnotations
import tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.Command
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kotlinbukkitkit.commands.register.CommandRegister
import tech.carcadex.kotlinbukkitkit.commands.service.MessagesService
import tech.carcadex.kotlinbukkitkit.commands.reflection.service.SubCommandsService
import tech.carcadex.kotlinbukkitkit.commands.service.TabCompleteService
import tech.carcadex.kbk.commands.reflection.CommandParams
import tech.carcadex.kbk.commands.reflection.Parser
import tech.carcadex.kbk.commands.reflection.Parser.paramsFromAnnotations
import tech.carcadex.kbk.commands.reflection.annotations.Command
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.register.CommandRegister
import tech.carcadex.kbk.commands.service.MessagesService
import tech.carcadex.kbk.commands.reflection.service.SubCommandsService
import tech.carcadex.kbk.commands.service.TabCompleteService
import kotlin.reflect.KFunction
import kotlin.reflect.full.createType
import kotlin.reflect.full.findAnnotations
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection
package tech.carcadex.kbk.commands.reflection
data class CommandParams(
val name: String,
@@ -1,11 +1,11 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection
package tech.carcadex.kbk.commands.reflection
import org.bukkit.command.CommandSender
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kotlinbukkitkit.commands.exceptions.UnsupportedTypeException
import tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.*
import tech.carcadex.kotlinbukkitkit.commands.service.MessagesService
import tech.carcadex.kotlinbukkitkit.commands.reflection.service.TypeService
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.exceptions.UnsupportedTypeException
import tech.carcadex.kbk.commands.reflection.annotations.*
import tech.carcadex.kbk.commands.service.MessagesService
import tech.carcadex.kbk.commands.reflection.service.TypeService
import kotlin.reflect.KClass
import kotlin.reflect.KFunction
import kotlin.reflect.KParameter
@@ -0,0 +1,3 @@
package tech.carcadex.kbk.commands.reflection.annotations
annotation class Aliases(val aliases: Array<String>)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Command(val name: String)
@@ -0,0 +1,4 @@
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Default()
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Description(val desc: String)
@@ -0,0 +1,4 @@
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Optional()
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Permission(val perm: String)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class SubCommand(val name: String)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class TabComplete(val complete: Array<String>)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
package tech.carcadex.kbk.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Usage(val usage: String)
@@ -1,15 +1,15 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.service
package tech.carcadex.kbk.commands.reflection.service
import org.bukkit.command.CommandSender
import org.bukkit.command.TabCompleter
import tech.carcadex.kotlinbukkitkit.commands.exceptions.NotPlayerException
import tech.carcadex.kotlinbukkitkit.commands.service.MessagesService
import tech.carcadex.kotlinbukkitkit.commands.service.TabCompleteService
import tech.carcadex.kotlinbukkitkit.commands.reflection.CommandParams
import tech.carcadex.kotlinbukkitkit.commands.reflection.Parser
import tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.Command
import tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.Default
import tech.carcadex.kotlinbukkitkit.commands.exceptions.CommandExecuteException
import tech.carcadex.kbk.commands.exceptions.NotPlayerException
import tech.carcadex.kbk.commands.service.MessagesService
import tech.carcadex.kbk.commands.service.TabCompleteService
import tech.carcadex.kbk.commands.reflection.CommandParams
import tech.carcadex.kbk.commands.reflection.Parser
import tech.carcadex.kbk.commands.reflection.annotations.Command
import tech.carcadex.kbk.commands.reflection.annotations.Default
import tech.carcadex.kbk.commands.exceptions.CommandExecuteException
import kotlin.reflect.KFunction
import kotlin.reflect.full.*
import kotlin.reflect.jvm.javaType
@@ -29,7 +29,7 @@ class SubCommandsService(private val messagesService: MessagesService, private v
val res = mutableListOf<SubCommand>()
for(func in clazz.functions) {
if(func.hasAnnotation<tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.SubCommand>()) {
if(func.hasAnnotation<tech.carcadex.kbk.commands.reflection.annotations.SubCommand>()) {
res.add(parseSubCommand(func, command))
} else if(func.hasAnnotation<Default>()) {
defaults[name] = parseSubCommand(func, command)
@@ -58,7 +58,7 @@ class SubCommandsService(private val messagesService: MessagesService, private v
private fun parseSubCommand(func: KFunction<*>, rootCommand: Any): SubCommand {
val name = if(func.hasAnnotation<Default>()) "default" else func.findAnnotations(tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.SubCommand::class).first().name
val name = if(func.hasAnnotation<Default>()) "default" else func.findAnnotations(tech.carcadex.kbk.commands.reflection.annotations.SubCommand::class).first().name
val context = Parser.paramsFromAnnotations(func)
val argsParsers = Parser.parseParam(func.parameters.toTypedArray().copyOfRange(1, func.parameters.size).toList())
var argsSize = func.parameters.size
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.service
package tech.carcadex.kbk.commands.reflection.service
import org.bukkit.Bukkit
import org.bukkit.Material
@@ -6,8 +6,8 @@ import org.bukkit.OfflinePlayer
import org.bukkit.World
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
import tech.carcadex.kotlinbukkitkit.commands.exceptions.UnsupportedTypeException
import tech.carcadex.kotlinbukkitkit.extensions.offlinePlayerOrNull
import tech.carcadex.kbk.commands.exceptions.UnsupportedTypeException
import tech.carcadex.kbk.extensions.offlinePlayerOrNull
import java.lang.reflect.Type
import kotlin.reflect.KClass
import kotlin.reflect.KType
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.register
package tech.carcadex.kbk.commands.register
import org.bukkit.Bukkit
import org.bukkit.command.*
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.service
package tech.carcadex.kbk.commands.service
import org.bukkit.ChatColor
import org.bukkit.command.CommandSender
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.commands.service
package tech.carcadex.kbk.commands.service
import org.bukkit.Bukkit
import org.bukkit.command.CommandSender
@@ -1,7 +0,0 @@
package tech.carcadex.kotlinbukkitkit.commands.dsl
import tech.carcadex.kotlinbukkitkit.commands.dsl.Command
interface CommandNode : Command {
fun add(command: Command)
}
@@ -1,3 +0,0 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
annotation class Aliases(val aliases: Array<String>)
@@ -1,4 +0,0 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Default()
@@ -1,4 +0,0 @@
package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations
@Retention(AnnotationRetention.RUNTIME)
annotation class Optional()
+2 -2
View File
@@ -10,8 +10,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-exposed"
val globalName = "kotlinbukkitkit-exposed"
val globalArtifactId = "kbk-exposed"
val globalName = "kbk-exposed"
repositories {
mavenCentral()
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed
package tech.carcadex.kbk.exposed
import kotlinx.serialization.Serializable
import java.io.File
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed
package tech.carcadex.kbk.exposed
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.bukkit.Bukkit
import org.bukkit.block.Block
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import tech.carcadex.kotlinbukkitkit.utility.types.BlockPos
import tech.carcadex.kbk.utility.types.BlockPos
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.sql.Column
import kotlin.reflect.KProperty
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.jetbrains.exposed.dao.Entity
import kotlin.reflect.KProperty
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.bukkit.Bukkit
import org.bukkit.Chunk
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import tech.carcadex.kotlinbukkitkit.utility.types.ChunkPos
import tech.carcadex.kbk.utility.types.ChunkPos
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.sql.Column
import kotlin.reflect.KProperty
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.jetbrains.exposed.dao.Entity
import kotlin.reflect.KProperty
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.bukkit.inventory.ItemStack
import org.bukkit.util.io.BukkitObjectInputStream
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import tech.carcadex.kotlinbukkitkit.extensions.world
import tech.carcadex.kbk.extensions.world
import org.bukkit.Bukkit
import org.bukkit.Location
import org.jetbrains.exposed.dao.Entity
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import tech.carcadex.kotlinbukkitkit.utility.types.LocationPos
import tech.carcadex.kbk.utility.types.LocationPos
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.sql.Column
import kotlin.reflect.KProperty
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import tech.carcadex.kotlinbukkitkit.extensions.offlinePlayer
import tech.carcadex.kbk.extensions.offlinePlayer
import org.bukkit.OfflinePlayer
import org.jetbrains.exposed.dao.Entity
import org.jetbrains.exposed.sql.Column
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.exposed.delegate
package tech.carcadex.kbk.exposed.delegate
import org.bukkit.Bukkit
import org.bukkit.World
+2 -2
View File
@@ -9,8 +9,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-extensions"
val globalName = "kotlinbukkitkit-extensions"
val globalArtifactId = "kbk-extensions"
val globalName = "kbk-extensions"
repositories {
mavenCentral()
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Material
import org.bukkit.block.Block
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import net.md_5.bungee.api.chat.BaseComponent
import net.md_5.bungee.api.chat.TextComponent
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Bukkit
import org.bukkit.command.Command
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.command.CommandSender
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.configuration.ConfigurationSection
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Location
import org.bukkit.entity.Entity
@@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import org.bukkit.Bukkit
import org.bukkit.event.Event
import org.bukkit.event.EventPriority
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Material
import org.bukkit.inventory.Inventory
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import com.google.common.collect.Multimap
import org.bukkit.Material
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.BlockChangeDelegate
import org.bukkit.Effect
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.permissions.Permissible
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Bukkit
import org.bukkit.Effect
@@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import org.bukkit.event.Listener
import org.bukkit.plugin.Plugin
@@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import org.bukkit.plugin.Plugin
import org.bukkit.scheduler.BukkitRunnable
import org.bukkit.scheduler.BukkitTask
@@ -5,7 +5,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.*
import org.bukkit.entity.Player
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import net.md_5.bungee.api.chat.BaseComponent
import net.md_5.bungee.api.chat.ClickEvent
@@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.extensions
package tech.carcadex.kbk.extensions
import org.bukkit.Bukkit
import org.bukkit.Chunk
+2 -2
View File
@@ -9,8 +9,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-genref"
val globalName = "kotlinbukkitkit-genref"
val globalArtifactId = "kbk-genref"
val globalName = "kbk-genref"
repositories {
mavenCentral()
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.plugin
package tech.carcadex.kbk.genref.plugin
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.getAnnotationsByType
@@ -12,11 +12,11 @@ import com.google.devtools.ksp.symbol.KSVisitorVoid
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ksp.KotlinPoetKspPreview
import com.squareup.kotlinpoet.ksp.writeTo
import tech.carcadex.kotlinbukkitkit.genref.plugin.annotations.OnDisable
import tech.carcadex.kotlinbukkitkit.genref.plugin.annotations.Plugin
import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin
import tech.carcadex.kotlinbukkitkit.genref.plugin.annotations.OnConfigReload
import tech.carcadex.kotlinbukkitkit.genref.plugin.annotations.OnLoad
import tech.carcadex.kbk.genref.plugin.annotations.OnDisable
import tech.carcadex.kbk.genref.plugin.annotations.Plugin
import tech.carcadex.kbk.architecture.KotlinPlugin
import tech.carcadex.kbk.genref.plugin.annotations.OnConfigReload
import tech.carcadex.kbk.genref.plugin.annotations.OnLoad
import java.nio.file.Path
import java.nio.file.Paths
import kotlin.io.path.deleteIfExists
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations
package tech.carcadex.kbk.genref.plugin.annotations
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.SOURCE)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations
package tech.carcadex.kbk.genref.plugin.annotations
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.SOURCE)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations
package tech.carcadex.kbk.genref.plugin.annotations
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.SOURCE)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations
package tech.carcadex.kbk.genref.plugin.annotations
@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.SOURCE)
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.processor
package tech.carcadex.kbk.genref.processor
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.isAnnotationPresent
@@ -9,8 +9,8 @@ import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSFunctionDeclaration
import com.google.devtools.ksp.validate
import tech.carcadex.kotlinbukkitkit.genref.plugin.PluginVisitor
import tech.carcadex.kotlinbukkitkit.genref.plugin.annotations.Plugin
import tech.carcadex.kbk.genref.plugin.PluginVisitor
import tech.carcadex.kbk.genref.plugin.annotations.Plugin
class GenRefProcessor(private val codeGenerator: CodeGenerator,
private val logger: KSPLogger) : SymbolProcessor {
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.genref.processor
package tech.carcadex.kbk.genref.processor
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
@@ -1 +1 @@
tech.carcadex.kotlinbukkitkit.genref.processor.ProcessorProvider
tech.carcadex.kbk.genref.processor.ProcessorProvider
+2 -2
View File
@@ -10,8 +10,8 @@ plugins {
}
group = "tech.carcadex"
val globalArtifactId = "kotlinbukkitkit-menu"
val globalName = "kotlinbukkitkit-menu"
val globalArtifactId = "kbk-menu"
val globalName = "kbk-menu"
repositories {
mavenCentral()
@@ -1,7 +1,7 @@
package tech.carcadex.kotlinbukkitkit.menu
package tech.carcadex.kbk.menu
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kotlinbukkitkit.menu.slot.Slot
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import tech.carcadex.kbk.menu.slot.Slot
import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.InventoryHolder
@@ -1,11 +1,11 @@
package tech.carcadex.kotlinbukkitkit.menu
package tech.carcadex.kbk.menu
import tech.carcadex.kotlinbukkitkit.architecture.PluginDisableAware
import tech.carcadex.kotlinbukkitkit.architecture.PluginDisableAwareController
import tech.carcadex.kotlinbukkitkit.extensions.KListener
import tech.carcadex.kotlinbukkitkit.extensions.onlinePlayers
import tech.carcadex.kotlinbukkitkit.extensions.registerEvents
import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotInteract
import tech.carcadex.kbk.architecture.PluginDisableAware
import tech.carcadex.kbk.architecture.PluginDisableAwareController
import tech.carcadex.kbk.extensions.KListener
import tech.carcadex.kbk.extensions.onlinePlayers
import tech.carcadex.kbk.extensions.registerEvents
import tech.carcadex.kbk.menu.slot.MenuPlayerSlotInteract
import org.bukkit.entity.Player
import org.bukkit.event.EventHandler
import org.bukkit.event.inventory.InventoryClickEvent
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.menu
package tech.carcadex.kbk.menu
public interface MenuEventHandler {
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.menu
package tech.carcadex.kbk.menu
import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
@@ -1,6 +1,6 @@
package tech.carcadex.kotlinbukkitkit.menu
package tech.carcadex.kbk.menu
import tech.carcadex.kotlinbukkitkit.menu.slot.Slot
import tech.carcadex.kbk.menu.slot.Slot
import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
@@ -1,4 +1,4 @@
package tech.carcadex.kotlinbukkitkit.menu.dsl
package tech.carcadex.kbk.menu.dsl
import org.bukkit.entity.Player
import java.util.*
@@ -1,8 +1,8 @@
package tech.carcadex.kotlinbukkitkit.menu.dsl
package tech.carcadex.kbk.menu.dsl
import tech.carcadex.kotlinbukkitkit.menu.Menu
import tech.carcadex.kotlinbukkitkit.menu.calculateSlot
import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL
import tech.carcadex.kbk.menu.Menu
import tech.carcadex.kbk.menu.calculateSlot
import tech.carcadex.kbk.menu.dsl.slot.SlotDSL
import org.bukkit.inventory.ItemStack
public inline fun MenuDSL.slot(
@@ -1,21 +1,21 @@
package tech.carcadex.kotlinbukkitkit.menu.dsl
package tech.carcadex.kbk.menu.dsl
import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin
import tech.carcadex.kotlinbukkitkit.extensions.task
import tech.carcadex.kotlinbukkitkit.menu.MenuControllerPlugins
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerClose
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerOpen
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerPreOpen
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerUpdate
import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL
import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSLImpl
import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotEventHandlerDSL
import tech.carcadex.kotlinbukkitkit.menu.rangeOfSlots
import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotRender
import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotUpdate
import tech.carcadex.kotlinbukkitkit.menu.slot.Slot
import tech.carcadex.kotlinbukkitkit.menu.slotOrBaseSlot
import tech.carcadex.kotlinbukkitkit.menu.viewersFromPlayers
import tech.carcadex.kbk.architecture.extensions.WithPlugin
import tech.carcadex.kbk.extensions.task
import tech.carcadex.kbk.menu.MenuControllerPlugins
import tech.carcadex.kbk.menu.MenuPlayerClose
import tech.carcadex.kbk.menu.MenuPlayerOpen
import tech.carcadex.kbk.menu.MenuPlayerPreOpen
import tech.carcadex.kbk.menu.MenuPlayerUpdate
import tech.carcadex.kbk.menu.dsl.slot.SlotDSL
import tech.carcadex.kbk.menu.dsl.slot.SlotDSLImpl
import tech.carcadex.kbk.menu.dsl.slot.SlotEventHandlerDSL
import tech.carcadex.kbk.menu.rangeOfSlots
import tech.carcadex.kbk.menu.slot.MenuPlayerSlotRender
import tech.carcadex.kbk.menu.slot.MenuPlayerSlotUpdate
import tech.carcadex.kbk.menu.slot.Slot
import tech.carcadex.kbk.menu.slotOrBaseSlot
import tech.carcadex.kbk.menu.viewersFromPlayers
import org.bukkit.Bukkit
import org.bukkit.entity.Player
import org.bukkit.inventory.Inventory
@@ -1,11 +1,11 @@
package tech.carcadex.kotlinbukkitkit.menu.dsl
package tech.carcadex.kbk.menu.dsl
import tech.carcadex.kotlinbukkitkit.menu.MenuEventHandler
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerClose
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerMoveTo
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerOpen
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerPreOpen
import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerUpdate
import tech.carcadex.kbk.menu.MenuEventHandler
import tech.carcadex.kbk.menu.MenuPlayerClose
import tech.carcadex.kbk.menu.MenuPlayerMoveTo
import tech.carcadex.kbk.menu.MenuPlayerOpen
import tech.carcadex.kbk.menu.MenuPlayerPreOpen
import tech.carcadex.kbk.menu.MenuPlayerUpdate
public typealias MenuPlayerUpdateEvent = MenuPlayerUpdate.() -> Unit
public typealias MenuPlayerCloseEvent = MenuPlayerClose.() -> Unit
Loaded 100 of 177 files, more files were not shown because too many files have changed in this diff. Show more