diff --git a/architecture/build.gradle.kts b/architecture/build.gradle.kts index f9d74f3..8e226ad 100644 --- a/architecture/build.gradle.kts +++ b/architecture/build.gradle.kts @@ -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() diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/KotlinPlugin.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/KotlinPlugin.kt similarity index 89% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/KotlinPlugin.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/KotlinPlugin.kt index a68492b..3cbe2f2 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/KotlinPlugin.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/KotlinPlugin.kt @@ -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 diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/ThirdPartyAware.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/ThirdPartyAware.kt similarity index 93% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/ThirdPartyAware.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/ThirdPartyAware.kt index 9395eef..b51568a 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/ThirdPartyAware.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/ThirdPartyAware.kt @@ -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 diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExDependency.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExDependency.kt similarity index 96% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExDependency.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExDependency.kt index b9034e3..2df62b8 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExDependency.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExDependency.kt @@ -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 diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExPlugin.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExPlugin.kt similarity index 87% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExPlugin.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExPlugin.kt index 6d10303..996d247 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/extensions/ExPlugin.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/extensions/ExPlugin.kt @@ -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 diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Lifecycle.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Lifecycle.kt similarity index 89% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Lifecycle.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Lifecycle.kt index 2b5907c..b9c7be8 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Lifecycle.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Lifecycle.kt @@ -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 diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/LifecycleListener.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/LifecycleListener.kt similarity index 86% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/LifecycleListener.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/LifecycleListener.kt index 26cfb88..9769570 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/LifecycleListener.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/LifecycleListener.kt @@ -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] diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/PluginLifecycleListener.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/PluginLifecycleListener.kt similarity index 86% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/PluginLifecycleListener.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/PluginLifecycleListener.kt index a6a512c..6018c71 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/PluginLifecycleListener.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/PluginLifecycleListener.kt @@ -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 } diff --git a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Utils.kt b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Utils.kt similarity index 81% rename from architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Utils.kt rename to architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Utils.kt index 7ce2d8c..c6612f0 100644 --- a/architecture/src/main/kotlin/tech/carcadex/kotlinbukkitkit/architecture/lifecycle/Utils.kt +++ b/architecture/src/main/kotlin/tech/carcadex/kbk/architecture/lifecycle/Utils.kt @@ -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 KotlinPlugin.getOrInsertGenericLifecycle( priority: Int, diff --git a/commands/build.gradle.kts b/commands/build.gradle.kts index e7e1f08..a2b9a38 100644 --- a/commands/build.gradle.kts +++ b/commands/build.gradle.kts @@ -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() diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/Test.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/Test.kt similarity index 51% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/Test.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/Test.kt index 39d4d9f..8df085a 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/Test.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/Test.kt @@ -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") { diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/Command.kt similarity index 88% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/Command.kt index ef705ad..e747644 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/Command.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandContext.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandContext.kt similarity index 93% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandContext.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandContext.kt index 31e2730..528346f 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandContext.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandContext.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.dsl +package tech.carcadex.kbk.commands.dsl /** * Class that contains command data diff --git a/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandNode.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandNode.kt new file mode 100644 index 0000000..7232513 --- /dev/null +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/CommandNode.kt @@ -0,0 +1,7 @@ +package tech.carcadex.kbk.commands.dsl + +import tech.carcadex.kbk.commands.dsl.Command + +interface CommandNode : Command { + fun add(command: Command) +} \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/DSLCommandArguments.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/DSLCommandArguments.kt similarity index 89% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/DSLCommandArguments.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/DSLCommandArguments.kt index 9062bca..3ec105a 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/DSLCommandArguments.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/DSLCommandArguments.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/ExecutorContext.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/ExecutorContext.kt similarity index 76% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/ExecutorContext.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/ExecutorContext.kt index 620df94..bc70000 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/ExecutorContext.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/ExecutorContext.kt @@ -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) { val player: Player diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilder.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilder.kt similarity index 75% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilder.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilder.kt index 6ce2760..ba3a790 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilder.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilder.kt @@ -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, diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilderOverloads.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilderOverloads.kt similarity index 87% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilderOverloads.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilderOverloads.kt index 5194901..8699bf6 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/builder/CommandBuilderOverloads.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/builder/CommandBuilderOverloads.kt @@ -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) { diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/leaf/CommandLeaf.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/leaf/CommandLeaf.kt similarity index 66% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/leaf/CommandLeaf.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/leaf/CommandLeaf.kt index fe328a6..f5101c8 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/leaf/CommandLeaf.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/leaf/CommandLeaf.kt @@ -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, diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/node/CommandNodeImpl.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/node/CommandNodeImpl.kt similarity index 72% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/node/CommandNodeImpl.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/node/CommandNodeImpl.kt index 0d13e87..00cf2ce 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/node/CommandNodeImpl.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/dsl/node/CommandNodeImpl.kt @@ -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, diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/ArgumentNotFoundException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/ArgumentNotFoundException.kt similarity index 70% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/ArgumentNotFoundException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/ArgumentNotFoundException.kt index c6442c4..fede17c 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/ArgumentNotFoundException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/ArgumentNotFoundException.kt @@ -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") { } \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/CommandExecuteException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/CommandExecuteException.kt similarity index 59% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/CommandExecuteException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/CommandExecuteException.kt index 5a05bfa..8963a8f 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/CommandExecuteException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/CommandExecuteException.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.exceptions +package tech.carcadex.kbk.commands.exceptions open class CommandExecuteException(val messageTag: String) : RuntimeException() { } \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/LeafCommandHasNotExecutorException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/LeafCommandHasNotExecutorException.kt similarity index 73% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/LeafCommandHasNotExecutorException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/LeafCommandHasNotExecutorException.kt index 6017128..5f189b1 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/LeafCommandHasNotExecutorException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/LeafCommandHasNotExecutorException.kt @@ -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!") { diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/NotPlayerException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/NotPlayerException.kt similarity index 60% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/NotPlayerException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/NotPlayerException.kt index 9452b44..73949a6 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/NotPlayerException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/NotPlayerException.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.exceptions +package tech.carcadex.kbk.commands.exceptions class NotPlayerException() : CommandExecuteException(messageTag = "#for-player-only") { } \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnknownCompleteException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnknownCompleteException.kt similarity index 56% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnknownCompleteException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnknownCompleteException.kt index 8ff15c1..1413beb 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnknownCompleteException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnknownCompleteException.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.exceptions +package tech.carcadex.kbk.commands.exceptions class UnknownCompleteException(val msg: String) : RuntimeException(msg) { } \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnsupportedTypeException.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnsupportedTypeException.kt similarity index 53% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnsupportedTypeException.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnsupportedTypeException.kt index 62e659f..baa9891 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/exceptions/UnsupportedTypeException.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/exceptions/UnsupportedTypeException.kt @@ -1,3 +1,3 @@ -package tech.carcadex.kotlinbukkitkit.commands.exceptions +package tech.carcadex.kbk.commands.exceptions class UnsupportedTypeException(msg: String) : RuntimeException(msg) \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/extensions/CommandSenderEx.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/extensions/CommandSenderEx.kt similarity index 56% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/extensions/CommandSenderEx.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/extensions/CommandSenderEx.kt index 606f0bd..6d01e4e 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/extensions/CommandSenderEx.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/extensions/CommandSenderEx.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.extensions +package tech.carcadex.kbk.commands.extensions import org.bukkit.command.CommandSender diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManager.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManager.kt similarity index 94% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManager.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManager.kt index 91bf1fd..883b4db 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManager.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManager.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManagerInternal.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManagerInternal.kt similarity index 86% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManagerInternal.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManagerInternal.kt index 3bc10c9..9d29c22 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/manager/CommandManagerInternal.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/manager/CommandManagerInternal.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/CommandParams.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/CommandParams.kt similarity index 79% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/CommandParams.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/CommandParams.kt index dacbe2d..d42edfb 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/CommandParams.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/CommandParams.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.reflection +package tech.carcadex.kbk.commands.reflection data class CommandParams( val name: String, diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/Parser.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/Parser.kt similarity index 92% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/Parser.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/Parser.kt index fbd4fa6..83e62c5 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/Parser.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/Parser.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Aliases.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Aliases.kt new file mode 100644 index 0000000..9fe720e --- /dev/null +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Aliases.kt @@ -0,0 +1,3 @@ +package tech.carcadex.kbk.commands.reflection.annotations + +annotation class Aliases(val aliases: Array) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Command.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Command.kt similarity index 54% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Command.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Command.kt index 0148914..2904ead 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Command.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Command.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Default.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Default.kt new file mode 100644 index 0000000..c6adfa3 --- /dev/null +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Default.kt @@ -0,0 +1,4 @@ +package tech.carcadex.kbk.commands.reflection.annotations + +@Retention(AnnotationRetention.RUNTIME) +annotation class Default() diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Description.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Description.kt similarity index 55% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Description.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Description.kt index 6f821c4..123cae5 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Description.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Description.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Optional.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Optional.kt new file mode 100644 index 0000000..0e27b99 --- /dev/null +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Optional.kt @@ -0,0 +1,4 @@ +package tech.carcadex.kbk.commands.reflection.annotations + +@Retention(AnnotationRetention.RUNTIME) +annotation class Optional() diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Permission.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Permission.kt similarity index 55% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Permission.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Permission.kt index ce08713..ff9d025 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Permission.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Permission.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/SubCommand.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/SubCommand.kt similarity index 55% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/SubCommand.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/SubCommand.kt index 756256f..91ca6f7 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/SubCommand.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/SubCommand.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/TabComplete.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/TabComplete.kt similarity index 58% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/TabComplete.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/TabComplete.kt index 7c3719b..8aef8b9 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/TabComplete.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/TabComplete.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Usage.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Usage.kt similarity index 54% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Usage.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Usage.kt index d6438ff..87bd610 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Usage.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/annotations/Usage.kt @@ -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) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/SubCommandsService.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/SubCommandsService.kt similarity index 80% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/SubCommandsService.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/SubCommandsService.kt index ed16793..1269ef8 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/SubCommandsService.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/SubCommandsService.kt @@ -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() for(func in clazz.functions) { - if(func.hasAnnotation()) { + if(func.hasAnnotation()) { res.add(parseSubCommand(func, command)) } else if(func.hasAnnotation()) { 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" else func.findAnnotations(tech.carcadex.kotlinbukkitkit.commands.reflection.annotations.SubCommand::class).first().name + val name = if(func.hasAnnotation()) "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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/TypeService.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/TypeService.kt similarity index 96% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/TypeService.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/TypeService.kt index 8aa9c45..82d75a0 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/service/TypeService.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/reflection/service/TypeService.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/register/CommandRegister.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/register/CommandRegister.kt similarity index 96% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/register/CommandRegister.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/register/CommandRegister.kt index 71d9e69..41a3522 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/register/CommandRegister.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/register/CommandRegister.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.commands.register +package tech.carcadex.kbk.commands.register import org.bukkit.Bukkit import org.bukkit.command.* diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/MessagesService.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/service/MessagesService.kt similarity index 96% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/MessagesService.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/service/MessagesService.kt index fb390fe..d6edeee 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/MessagesService.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/service/MessagesService.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/TabCompleteService.kt b/commands/src/main/kotlin/tech/carcadex/kbk/commands/service/TabCompleteService.kt similarity index 98% rename from commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/TabCompleteService.kt rename to commands/src/main/kotlin/tech/carcadex/kbk/commands/service/TabCompleteService.kt index 3873db0..5cecc1c 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/service/TabCompleteService.kt +++ b/commands/src/main/kotlin/tech/carcadex/kbk/commands/service/TabCompleteService.kt @@ -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 diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandNode.kt b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandNode.kt deleted file mode 100644 index fb55631..0000000 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/CommandNode.kt +++ /dev/null @@ -1,7 +0,0 @@ -package tech.carcadex.kotlinbukkitkit.commands.dsl - -import tech.carcadex.kotlinbukkitkit.commands.dsl.Command - -interface CommandNode : Command { - fun add(command: Command) -} \ No newline at end of file diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Aliases.kt b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Aliases.kt deleted file mode 100644 index ef99d78..0000000 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Aliases.kt +++ /dev/null @@ -1,3 +0,0 @@ -package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations - -annotation class Aliases(val aliases: Array) diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Default.kt b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Default.kt deleted file mode 100644 index a46ce94..0000000 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Default.kt +++ /dev/null @@ -1,4 +0,0 @@ -package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations - -@Retention(AnnotationRetention.RUNTIME) -annotation class Default() diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Optional.kt b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Optional.kt deleted file mode 100644 index 942e0ba..0000000 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/reflection/annotations/Optional.kt +++ /dev/null @@ -1,4 +0,0 @@ -package tech.carcadex.kotlinbukkitkit.commands.reflection.annotations - -@Retention(AnnotationRetention.RUNTIME) -annotation class Optional() diff --git a/exposed/build.gradle.kts b/exposed/build.gradle.kts index 0065319..0bc6438 100644 --- a/exposed/build.gradle.kts +++ b/exposed/build.gradle.kts @@ -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() diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseHelper.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseHelper.kt similarity index 97% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseHelper.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseHelper.kt index 03d4f5b..2862d4d 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseHelper.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseHelper.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.exposed +package tech.carcadex.kbk.exposed import kotlinx.serialization.Serializable import java.io.File diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseType.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseType.kt similarity index 99% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseType.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseType.kt index aa2bf1e..95cbc18 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/DatabaseType.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/DatabaseType.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.exposed +package tech.carcadex.kbk.exposed import com.zaxxer.hikari.HikariConfig import com.zaxxer.hikari.HikariDataSource diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Block.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Block.kt similarity index 98% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Block.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Block.kt index 1b75d94..e08401e 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Block.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Block.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/BlockPos.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/BlockPos.kt similarity index 97% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/BlockPos.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/BlockPos.kt index 1331350..d30c02c 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/BlockPos.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/BlockPos.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Cached.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Cached.kt similarity index 93% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Cached.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Cached.kt index d3b6ca9..04415ba 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Cached.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Cached.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Chunk.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Chunk.kt similarity index 98% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Chunk.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Chunk.kt index 627f85e..f011c17 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Chunk.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Chunk.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.exposed.delegate +package tech.carcadex.kbk.exposed.delegate import org.bukkit.Bukkit import org.bukkit.Chunk diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ChunkPos.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ChunkPos.kt similarity index 97% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ChunkPos.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ChunkPos.kt index 089124d..6100ae2 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ChunkPos.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ChunkPos.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ExposedDelegate.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ExposedDelegate.kt similarity index 87% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ExposedDelegate.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ExposedDelegate.kt index d3fec6d..617b7f2 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/ExposedDelegate.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/ExposedDelegate.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Item.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Item.kt similarity index 97% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Item.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Item.kt index 9fc2cbc..cd9c9dc 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Item.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Item.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Location.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Location.kt similarity index 98% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Location.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Location.kt index f25851f..d6c5e83 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/Location.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/Location.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/LocationPos.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/LocationPos.kt similarity index 97% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/LocationPos.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/LocationPos.kt index b4d67ab..90acd98 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/LocationPos.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/LocationPos.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/OfflinePlayer.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/OfflinePlayer.kt similarity index 93% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/OfflinePlayer.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/OfflinePlayer.kt index 448c945..f52df53 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/OfflinePlayer.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/OfflinePlayer.kt @@ -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 diff --git a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/World.kt b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/World.kt similarity index 96% rename from exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/World.kt rename to exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/World.kt index 9bae40b..c7b7ad8 100644 --- a/exposed/src/main/kotlin/tech/carcadex/kotlinbukkitkit/exposed/delegate/World.kt +++ b/exposed/src/main/kotlin/tech/carcadex/kbk/exposed/delegate/World.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.exposed.delegate +package tech.carcadex.kbk.exposed.delegate import org.bukkit.Bukkit import org.bukkit.World diff --git a/extensions/build.gradle.kts b/extensions/build.gradle.kts index 0ed0396..5c9844f 100644 --- a/extensions/build.gradle.kts +++ b/extensions/build.gradle.kts @@ -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() diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBlock.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBlock.kt similarity index 95% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBlock.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBlock.kt index be03186..2e88f55 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBlock.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBlock.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBukkit.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBukkit.kt similarity index 97% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBukkit.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBukkit.kt index a0f26e3..183551b 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExBukkit.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExBukkit.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommand.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommand.kt similarity index 96% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommand.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommand.kt index 48d67f4..5d413fa 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommand.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommand.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommandSender.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommandSender.kt similarity index 80% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommandSender.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommandSender.kt index 4e75622..db1b326 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExCommandSender.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExCommandSender.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.extensions +package tech.carcadex.kbk.extensions import org.bukkit.command.CommandSender diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExConfiguration.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExConfiguration.kt similarity index 96% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExConfiguration.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExConfiguration.kt index b6df705..5d41b0e 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExConfiguration.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExConfiguration.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEntity.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEntity.kt similarity index 96% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEntity.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEntity.kt index 42a476e..d1cba26 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEntity.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEntity.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEvent.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEvent.kt similarity index 95% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEvent.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEvent.kt index 141ab33..8e8a0a5 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExEvent.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExEvent.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExInventory.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExInventory.kt similarity index 94% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExInventory.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExInventory.kt index 3c035a7..2003ccd 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExInventory.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExInventory.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExItemStack.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExItemStack.kt similarity index 98% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExItemStack.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExItemStack.kt index 633f4e7..96aa970 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExItemStack.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExItemStack.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExLocation.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExLocation.kt similarity index 98% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExLocation.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExLocation.kt index 8966852..a5f9b66 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExLocation.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExLocation.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPermission.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPermission.kt similarity index 93% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPermission.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPermission.kt index c581b19..470e52c 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPermission.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPermission.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlayer.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlayer.kt similarity index 96% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlayer.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlayer.kt index 709cbcc..9208b72 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlayer.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlayer.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlugin.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlugin.kt similarity index 91% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlugin.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlugin.kt index d32b522..21b3ac6 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExPlugin.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExPlugin.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExScheduler.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExScheduler.kt similarity index 95% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExScheduler.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExScheduler.kt index 34a05d0..0a0d3b5 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExScheduler.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExScheduler.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExServer.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExServer.kt similarity index 98% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExServer.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExServer.kt index e9a467d..71eca71 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExServer.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExServer.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExText.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExText.kt similarity index 99% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExText.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExText.kt index 22510aa..de26da7 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExText.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExText.kt @@ -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 diff --git a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExWorld.kt b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExWorld.kt similarity index 97% rename from extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExWorld.kt rename to extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExWorld.kt index a27b1a9..98cde71 100644 --- a/extensions/src/main/kotlin/tech/carcadex/kotlinbukkitkit/extensions/ExWorld.kt +++ b/extensions/src/main/kotlin/tech/carcadex/kbk/extensions/ExWorld.kt @@ -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 diff --git a/genref/build.gradle.kts b/genref/build.gradle.kts index 7e913ab..96f3b0e 100644 --- a/genref/build.gradle.kts +++ b/genref/build.gradle.kts @@ -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() diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/PluginVisitor.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/PluginVisitor.kt similarity index 91% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/PluginVisitor.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/PluginVisitor.kt index 2fd8930..831d461 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/PluginVisitor.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/PluginVisitor.kt @@ -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 diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnConfigReload.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnConfigReload.kt similarity index 63% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnConfigReload.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnConfigReload.kt index 7e802bd..f7f2c43 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnConfigReload.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnConfigReload.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations +package tech.carcadex.kbk.genref.plugin.annotations @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.SOURCE) diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnDisable.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnDisable.kt similarity index 61% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnDisable.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnDisable.kt index c00d572..8293ed2 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnDisable.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnDisable.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations +package tech.carcadex.kbk.genref.plugin.annotations @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.SOURCE) diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnLoad.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnLoad.kt similarity index 61% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnLoad.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnLoad.kt index dc0a8ca..6fdb2b6 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/OnLoad.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/OnLoad.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations +package tech.carcadex.kbk.genref.plugin.annotations @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.SOURCE) diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/Plugin.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/Plugin.kt similarity index 61% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/Plugin.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/Plugin.kt index e144c41..452a7e8 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/plugin/annotations/Plugin.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/plugin/annotations/Plugin.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.genref.plugin.annotations +package tech.carcadex.kbk.genref.plugin.annotations @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.SOURCE) diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/GenRefProcessor.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/GenRefProcessor.kt similarity index 86% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/GenRefProcessor.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/GenRefProcessor.kt index 89a64d1..b10c4ef 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/GenRefProcessor.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/GenRefProcessor.kt @@ -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 { diff --git a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/ProcessorProvider.kt b/genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/ProcessorProvider.kt similarity index 88% rename from genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/ProcessorProvider.kt rename to genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/ProcessorProvider.kt index 99e488d..2fa81c1 100644 --- a/genref/src/main/kotlin/tech/carcadex/kotlinbukkitkit/genref/processor/ProcessorProvider.kt +++ b/genref/src/main/kotlin/tech/carcadex/kbk/genref/processor/ProcessorProvider.kt @@ -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 diff --git a/genref/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider b/genref/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider index a680745..27d0c7a 100644 --- a/genref/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider +++ b/genref/src/main/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider @@ -1 +1 @@ -tech.carcadex.kotlinbukkitkit.genref.processor.ProcessorProvider \ No newline at end of file +tech.carcadex.kbk.genref.processor.ProcessorProvider \ No newline at end of file diff --git a/menu/build.gradle.kts b/menu/build.gradle.kts index 7514a83..1670ad9 100644 --- a/menu/build.gradle.kts +++ b/menu/build.gradle.kts @@ -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() diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Menu.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/Menu.kt similarity index 89% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Menu.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/Menu.kt index 265af1d..9cddcb7 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Menu.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/Menu.kt @@ -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 diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuController.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuController.kt similarity index 88% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuController.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuController.kt index cec5cd3..8c7252d 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuController.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuController.kt @@ -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 diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEventHandler.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEventHandler.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEventHandler.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEventHandler.kt index 4b79e59..8f037fa 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEventHandler.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEventHandler.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.menu +package tech.carcadex.kbk.menu public interface MenuEventHandler { diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEvents.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEvents.kt similarity index 98% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEvents.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEvents.kt index ac069cf..b622a0b 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/MenuEvents.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/MenuEvents.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.menu +package tech.carcadex.kbk.menu import org.bukkit.entity.Player import org.bukkit.inventory.Inventory diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Utils.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/Utils.kt similarity index 92% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Utils.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/Utils.kt index 0bb5c85..7f1f73f 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/Utils.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/Utils.kt @@ -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 diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/Extensions.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/Extensions.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/Extensions.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/Extensions.kt index d0dbf66..abd6860 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/Extensions.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/Extensions.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl +package tech.carcadex.kbk.menu.dsl import org.bukkit.entity.Player import java.util.* diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSL.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSL.kt similarity index 83% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSL.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSL.kt index 6397d3f..e733361 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSL.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSL.kt @@ -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( diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSLImpl.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSLImpl.kt similarity index 84% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSLImpl.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSLImpl.kt index 7bbcdff..ad25da1 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuDSLImpl.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuDSLImpl.kt @@ -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 diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuEventHandlerDSL.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuEventHandlerDSL.kt similarity index 79% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuEventHandlerDSL.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuEventHandlerDSL.kt index 6610b61..6112f19 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/MenuEventHandlerDSL.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/MenuEventHandlerDSL.kt @@ -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 diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPagination.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPagination.kt similarity index 89% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPagination.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPagination.kt index 36910d3..55efae6 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPagination.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPagination.kt @@ -1,11 +1,11 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination +package tech.carcadex.kbk.menu.dsl.pagination -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayer -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerInventory -import tech.carcadex.kotlinbukkitkit.menu.dsl.MenuDSL -import tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot.PaginationSlotDSL -import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL -import tech.carcadex.kotlinbukkitkit.utility.collections.ObservableCollection +import tech.carcadex.kbk.menu.MenuPlayer +import tech.carcadex.kbk.menu.MenuPlayerInventory +import tech.carcadex.kbk.menu.dsl.MenuDSL +import tech.carcadex.kbk.menu.dsl.pagination.slot.PaginationSlotDSL +import tech.carcadex.kbk.menu.dsl.slot.SlotDSL +import tech.carcadex.kbk.utility.collections.ObservableCollection import org.bukkit.entity.Player import java.lang.IllegalArgumentException import java.util.TreeMap diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPaginationImpl.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPaginationImpl.kt similarity index 94% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPaginationImpl.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPaginationImpl.kt index d7671f3..6cf8d6f 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/MenuPaginationImpl.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/MenuPaginationImpl.kt @@ -1,12 +1,12 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination +package tech.carcadex.kbk.menu.dsl.pagination -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerInventory -import tech.carcadex.kotlinbukkitkit.menu.calculateSlot -import tech.carcadex.kotlinbukkitkit.menu.dsl.MenuDSL -import tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot.PaginationSlotDSL -import tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot.PaginationSlotDSLImpl -import tech.carcadex.kotlinbukkitkit.menu.dsl.slot -import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL +import tech.carcadex.kbk.menu.MenuPlayerInventory +import tech.carcadex.kbk.menu.calculateSlot +import tech.carcadex.kbk.menu.dsl.MenuDSL +import tech.carcadex.kbk.menu.dsl.pagination.slot.PaginationSlotDSL +import tech.carcadex.kbk.menu.dsl.pagination.slot.PaginationSlotDSLImpl +import tech.carcadex.kbk.menu.dsl.slot +import tech.carcadex.kbk.menu.dsl.slot.SlotDSL import org.bukkit.entity.Player import java.util.* diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/PaginationEventHandler.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/PaginationEventHandler.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/PaginationEventHandler.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/PaginationEventHandler.kt index f47394c..35df793 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/PaginationEventHandler.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/PaginationEventHandler.kt @@ -1,6 +1,6 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination +package tech.carcadex.kbk.menu.dsl.pagination -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayer +import tech.carcadex.kbk.menu.MenuPlayer public typealias MenuPlayerPageChangeEvent = MenuPlayer.() -> Unit public typealias MenuPlayerPageAvailableEvent = MenuPlayer.() -> Unit diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSL.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSL.kt similarity index 88% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSL.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSL.kt index d4975c5..0515e0d 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSL.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSL.kt @@ -1,6 +1,6 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot +package tech.carcadex.kbk.menu.dsl.pagination.slot -import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL +import tech.carcadex.kbk.menu.dsl.slot.SlotDSL import org.bukkit.entity.Player import java.util.* diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt similarity index 89% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt index 7bb4105..1ba74c3 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotDSLImpl.kt @@ -1,9 +1,9 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot +package tech.carcadex.kbk.menu.dsl.pagination.slot -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerInventory -import tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.MenuPaginationImpl -import tech.carcadex.kotlinbukkitkit.menu.dsl.slot.SlotDSL -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotRender +import tech.carcadex.kbk.menu.MenuPlayerInventory +import tech.carcadex.kbk.menu.dsl.pagination.MenuPaginationImpl +import tech.carcadex.kbk.menu.dsl.slot.SlotDSL +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotRender import org.bukkit.entity.Player import java.util.* diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt similarity index 80% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt index 912d818..f93e0b8 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/pagination/slot/PaginationSlotEventHandler.kt @@ -1,11 +1,11 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.pagination.slot +package tech.carcadex.kbk.menu.dsl.pagination.slot -import tech.carcadex.kotlinbukkitkit.menu.Menu -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerInventorySlot -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotInteract -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotRender -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotUpdate -import tech.carcadex.kotlinbukkitkit.menu.slot.Slot +import tech.carcadex.kbk.menu.Menu +import tech.carcadex.kbk.menu.slot.MenuPlayerInventorySlot +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotInteract +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotRender +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotUpdate +import tech.carcadex.kbk.menu.slot.Slot import org.bukkit.entity.Player import org.bukkit.inventory.Inventory diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSL.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSL.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSL.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSL.kt index a708cfe..19e67c5 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSL.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSL.kt @@ -1,6 +1,6 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.slot +package tech.carcadex.kbk.menu.dsl.slot -import tech.carcadex.kotlinbukkitkit.menu.slot.Slot +import tech.carcadex.kbk.menu.slot.Slot import org.bukkit.inventory.ItemStack public interface SlotDSL : Slot { diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSLImpl.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSLImpl.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSLImpl.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSLImpl.kt index 7929fae..0eaedb5 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotDSLImpl.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotDSLImpl.kt @@ -1,6 +1,6 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.slot +package tech.carcadex.kbk.menu.dsl.slot -import tech.carcadex.kotlinbukkitkit.menu.dsl.MenuDSL +import tech.carcadex.kbk.menu.dsl.MenuDSL import org.bukkit.entity.Player import org.bukkit.inventory.ItemStack import java.util.* diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotEventHandlerDSL.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotEventHandlerDSL.kt similarity index 80% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotEventHandlerDSL.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotEventHandlerDSL.kt index 5627412..2625f7d 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/dsl/slot/SlotEventHandlerDSL.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/dsl/slot/SlotEventHandlerDSL.kt @@ -1,10 +1,10 @@ -package tech.carcadex.kotlinbukkitkit.menu.dsl.slot +package tech.carcadex.kbk.menu.dsl.slot -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotInteract -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotMoveTo -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotRender -import tech.carcadex.kotlinbukkitkit.menu.slot.MenuPlayerSlotUpdate -import tech.carcadex.kotlinbukkitkit.menu.slot.SlotEventHandler +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotInteract +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotMoveTo +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotRender +import tech.carcadex.kbk.menu.slot.MenuPlayerSlotUpdate +import tech.carcadex.kbk.menu.slot.SlotEventHandler public typealias MenuPlayerSlotInteractEvent = MenuPlayerSlotInteract.() -> Unit public typealias MenuPlayerSlotRenderEvent = MenuPlayerSlotRender.() -> Unit diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/Slot.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/Slot.kt similarity index 93% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/Slot.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/Slot.kt index 14fe09e..026eed4 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/Slot.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/Slot.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.menu.slot +package tech.carcadex.kbk.menu.slot import org.bukkit.entity.Player import org.bukkit.inventory.ItemStack diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEventHandler.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEventHandler.kt similarity index 86% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEventHandler.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEventHandler.kt index 6db1ed1..a1a87c4 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEventHandler.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEventHandler.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.menu.slot +package tech.carcadex.kbk.menu.slot public interface SlotEventHandler { diff --git a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEvents.kt b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEvents.kt similarity index 87% rename from menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEvents.kt rename to menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEvents.kt index becbd4f..e2b4669 100644 --- a/menu/src/main/kotlin/tech/carcadex/kotlinbukkitkit/menu/slot/SlotEvents.kt +++ b/menu/src/main/kotlin/tech/carcadex/kbk/menu/slot/SlotEvents.kt @@ -1,10 +1,10 @@ -package tech.carcadex.kotlinbukkitkit.menu.slot +package tech.carcadex.kbk.menu.slot -import tech.carcadex.kotlinbukkitkit.menu.Menu -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayer -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerInteract -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerInventory -import tech.carcadex.kotlinbukkitkit.menu.MenuPlayerMove +import tech.carcadex.kbk.menu.Menu +import tech.carcadex.kbk.menu.MenuPlayer +import tech.carcadex.kbk.menu.MenuPlayerInteract +import tech.carcadex.kbk.menu.MenuPlayerInventory +import tech.carcadex.kbk.menu.MenuPlayerMove import org.bukkit.Material import org.bukkit.entity.Player import org.bukkit.event.inventory.ClickType diff --git a/messages/build.gradle.kts b/messages/build.gradle.kts index 04ba403..4c306a3 100644 --- a/messages/build.gradle.kts +++ b/messages/build.gradle.kts @@ -8,8 +8,8 @@ plugins { } group = "tech.carcadex" -val globalArtifactId = "kotlinbukkitkit-messages" -val globalName = "kotlinbukkitkit-messages" +val globalArtifactId = "kbk-messages" +val globalName = "kbk-messages" repositories { mavenCentral() diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/Messages.java b/messages/src/main/java/tech/carcadex/kbk/messages/container/Messages.java similarity index 92% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/Messages.java rename to messages/src/main/java/tech/carcadex/kbk/messages/container/Messages.java index 72d9a10..1703126 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/Messages.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/container/Messages.java @@ -1,13 +1,13 @@ -package tech.carcadex.kotlinbukkitkit.messages.container; +package tech.carcadex.kbk.messages.container; -import tech.carcadex.kotlinbukkitkit.messages.factory.impl.MessageFactoryImpl; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; -import tech.carcadex.kotlinbukkitkit.messages.container.impl.MessagesImpl; -import tech.carcadex.kotlinbukkitkit.messages.factory.MessageFactory; -import tech.carcadex.kotlinbukkitkit.messages.factory.impl.LegacyFactoryImpl; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.NullMessage; -import tech.carcadex.kotlinbukkitkit.messages.verifier.MessageVerifier; -import tech.carcadex.kotlinbukkitkit.messages.verifier.impl.FileMessageVerifier; +import tech.carcadex.kbk.messages.factory.impl.MessageFactoryImpl; +import tech.carcadex.kbk.messages.model.Message; +import tech.carcadex.kbk.messages.container.impl.MessagesImpl; +import tech.carcadex.kbk.messages.factory.MessageFactory; +import tech.carcadex.kbk.messages.factory.impl.LegacyFactoryImpl; +import tech.carcadex.kbk.messages.model.impl.NullMessage; +import tech.carcadex.kbk.messages.verifier.MessageVerifier; +import tech.carcadex.kbk.messages.verifier.impl.FileMessageVerifier; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.plugin.Plugin; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/impl/MessagesImpl.java b/messages/src/main/java/tech/carcadex/kbk/messages/container/impl/MessagesImpl.java similarity index 89% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/impl/MessagesImpl.java rename to messages/src/main/java/tech/carcadex/kbk/messages/container/impl/MessagesImpl.java index 44df7c8..0245176 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/container/impl/MessagesImpl.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/container/impl/MessagesImpl.java @@ -1,10 +1,10 @@ -package tech.carcadex.kotlinbukkitkit.messages.container.impl; +package tech.carcadex.kbk.messages.container.impl; -import tech.carcadex.kotlinbukkitkit.messages.container.Messages; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; -import tech.carcadex.kotlinbukkitkit.messages.factory.MessageFactory; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.NullMessage; -import tech.carcadex.kotlinbukkitkit.messages.verifier.MessageVerifier; +import tech.carcadex.kbk.messages.container.Messages; +import tech.carcadex.kbk.messages.model.Message; +import tech.carcadex.kbk.messages.factory.MessageFactory; +import tech.carcadex.kbk.messages.model.impl.NullMessage; +import tech.carcadex.kbk.messages.verifier.MessageVerifier; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.YamlConfiguration; import org.jetbrains.annotations.NotNull; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/MessageFactory.java b/messages/src/main/java/tech/carcadex/kbk/messages/factory/MessageFactory.java similarity index 62% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/MessageFactory.java rename to messages/src/main/java/tech/carcadex/kbk/messages/factory/MessageFactory.java index 64e314e..ab78793 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/MessageFactory.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/factory/MessageFactory.java @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.factory; +package tech.carcadex.kbk.messages.factory; -import tech.carcadex.kotlinbukkitkit.messages.container.Messages; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; +import tech.carcadex.kbk.messages.container.Messages; +import tech.carcadex.kbk.messages.model.Message; import java.util.List; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/LegacyFactoryImpl.java b/messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/LegacyFactoryImpl.java similarity index 76% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/LegacyFactoryImpl.java rename to messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/LegacyFactoryImpl.java index 3ae707e..93fb0ea 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/LegacyFactoryImpl.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/LegacyFactoryImpl.java @@ -1,10 +1,10 @@ -package tech.carcadex.kotlinbukkitkit.messages.factory.impl; +package tech.carcadex.kbk.messages.factory.impl; import com.google.common.collect.Lists; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; -import tech.carcadex.kotlinbukkitkit.messages.utils.MD5ColorUtils; -import tech.carcadex.kotlinbukkitkit.messages.factory.MessageFactory; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.serialized.impl.LegacyMessage; +import tech.carcadex.kbk.messages.model.Message; +import tech.carcadex.kbk.messages.utils.MD5ColorUtils; +import tech.carcadex.kbk.messages.factory.MessageFactory; +import tech.carcadex.kbk.messages.model.impl.serialized.impl.LegacyMessage; import org.bukkit.plugin.Plugin; import java.util.List; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/MessageFactoryImpl.java b/messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/MessageFactoryImpl.java similarity index 73% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/MessageFactoryImpl.java rename to messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/MessageFactoryImpl.java index cb3b944..7ade548 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/factory/impl/MessageFactoryImpl.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/factory/impl/MessageFactoryImpl.java @@ -1,11 +1,11 @@ -package tech.carcadex.kotlinbukkitkit.messages.factory.impl; +package tech.carcadex.kbk.messages.factory.impl; import com.google.common.collect.Lists; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; -import tech.carcadex.kotlinbukkitkit.messages.utils.MD5ColorUtils; -import tech.carcadex.kotlinbukkitkit.messages.factory.MessageFactory; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.ComponentMessage; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.serialized.impl.LegacyMessage; +import tech.carcadex.kbk.messages.model.Message; +import tech.carcadex.kbk.messages.utils.MD5ColorUtils; +import tech.carcadex.kbk.messages.factory.MessageFactory; +import tech.carcadex.kbk.messages.model.impl.ComponentMessage; +import tech.carcadex.kbk.messages.model.impl.serialized.impl.LegacyMessage; import org.bukkit.plugin.Plugin; import java.util.List; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/MessagesExtensions.kt b/messages/src/main/java/tech/carcadex/kbk/messages/kotlin/MessagesExtensions.kt similarity index 82% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/MessagesExtensions.kt rename to messages/src/main/java/tech/carcadex/kbk/messages/kotlin/MessagesExtensions.kt index 0a14b0e..f997004 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/MessagesExtensions.kt +++ b/messages/src/main/java/tech/carcadex/kbk/messages/kotlin/MessagesExtensions.kt @@ -1,8 +1,8 @@ -package tech.carcadex.kotlinbukkitkit.messages.kotlin +package tech.carcadex.kbk.messages.kotlin -import tech.carcadex.kotlinbukkitkit.messages.container.Messages -import tech.carcadex.kotlinbukkitkit.messages.model.Message -import tech.carcadex.kotlinbukkitkit.messages.verifier.MessageVerifier +import tech.carcadex.kbk.messages.container.Messages +import tech.carcadex.kbk.messages.model.Message +import tech.carcadex.kbk.messages.verifier.MessageVerifier import org.bukkit.command.CommandSender import org.bukkit.plugin.Plugin import java.io.File diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/TriumphGuiExtensions.kt b/messages/src/main/java/tech/carcadex/kbk/messages/kotlin/TriumphGuiExtensions.kt similarity index 64% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/TriumphGuiExtensions.kt rename to messages/src/main/java/tech/carcadex/kbk/messages/kotlin/TriumphGuiExtensions.kt index af3ea87..cc2f382 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/kotlin/TriumphGuiExtensions.kt +++ b/messages/src/main/java/tech/carcadex/kbk/messages/kotlin/TriumphGuiExtensions.kt @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.kotlin +package tech.carcadex.kbk.messages.kotlin import dev.triumphteam.gui.builder.item.ItemBuilder -import tech.carcadex.kotlinbukkitkit.messages.model.Message +import tech.carcadex.kbk.messages.model.Message fun ItemBuilder.name(message: Message) = this.name(message.asComponent()) diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/AbstractMessage.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/AbstractMessage.java similarity index 97% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/AbstractMessage.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/AbstractMessage.java index d54a4ba..183413a 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/AbstractMessage.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/AbstractMessage.java @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.messages.model; +package tech.carcadex.kbk.messages.model; import com.cryptomorin.xseries.XMaterial; import net.kyori.adventure.audience.Audience; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/Message.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/Message.java similarity index 97% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/Message.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/Message.java index 208e135..aa865de 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/Message.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/Message.java @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.messages.model; +package tech.carcadex.kbk.messages.model; import com.cryptomorin.xseries.XMaterial; import net.kyori.adventure.text.Component; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/ComponentMessage.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/ComponentMessage.java similarity index 82% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/ComponentMessage.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/impl/ComponentMessage.java index 3d837dc..4dac0dc 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/ComponentMessage.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/ComponentMessage.java @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.model.impl; +package tech.carcadex.kbk.messages.model.impl; -import tech.carcadex.kotlinbukkitkit.messages.model.AbstractMessage; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; +import tech.carcadex.kbk.messages.model.AbstractMessage; +import tech.carcadex.kbk.messages.model.Message; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.minimessage.MiniMessage; import org.bukkit.plugin.Plugin; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/NullMessage.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/NullMessage.java similarity index 89% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/NullMessage.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/impl/NullMessage.java index ad4a281..98a6cd4 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/NullMessage.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/NullMessage.java @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.model.impl; +package tech.carcadex.kbk.messages.model.impl; import com.cryptomorin.xseries.XMaterial; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; +import tech.carcadex.kbk.messages.model.Message; import net.kyori.adventure.text.Component; import org.bukkit.command.CommandSender; import org.jetbrains.annotations.NotNull; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/SerializedMessage.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/SerializedMessage.java similarity index 84% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/SerializedMessage.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/SerializedMessage.java index 2efb245..3eaa388 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/SerializedMessage.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/SerializedMessage.java @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.model.impl.serialized; +package tech.carcadex.kbk.messages.model.impl.serialized; -import tech.carcadex.kotlinbukkitkit.messages.model.AbstractMessage; -import tech.carcadex.kotlinbukkitkit.messages.model.Message; +import tech.carcadex.kbk.messages.model.AbstractMessage; +import tech.carcadex.kbk.messages.model.Message; import net.kyori.adventure.text.Component; import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.serializer.ComponentSerializer; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/impl/LegacyMessage.java b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/impl/LegacyMessage.java similarity index 67% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/impl/LegacyMessage.java rename to messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/impl/LegacyMessage.java index de9ce3f..e9c5238 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/model/impl/serialized/impl/LegacyMessage.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/model/impl/serialized/impl/LegacyMessage.java @@ -1,6 +1,6 @@ -package tech.carcadex.kotlinbukkitkit.messages.model.impl.serialized.impl; +package tech.carcadex.kbk.messages.model.impl.serialized.impl; -import tech.carcadex.kotlinbukkitkit.messages.model.impl.serialized.SerializedMessage; +import tech.carcadex.kbk.messages.model.impl.serialized.SerializedMessage; import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer; import org.bukkit.plugin.Plugin; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/utils/MD5ColorUtils.java b/messages/src/main/java/tech/carcadex/kbk/messages/utils/MD5ColorUtils.java similarity index 94% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/utils/MD5ColorUtils.java rename to messages/src/main/java/tech/carcadex/kbk/messages/utils/MD5ColorUtils.java index 0bee3aa..1db5f9a 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/utils/MD5ColorUtils.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/utils/MD5ColorUtils.java @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.messages.utils; +package tech.carcadex.kbk.messages.utils; import net.md_5.bungee.api.ChatColor; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/MessageVerifier.java b/messages/src/main/java/tech/carcadex/kbk/messages/verifier/MessageVerifier.java similarity index 66% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/MessageVerifier.java rename to messages/src/main/java/tech/carcadex/kbk/messages/verifier/MessageVerifier.java index 8524fb8..80ce74b 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/MessageVerifier.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/verifier/MessageVerifier.java @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.messages.verifier; +package tech.carcadex.kbk.messages.verifier; import java.util.Optional; diff --git a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/impl/FileMessageVerifier.java b/messages/src/main/java/tech/carcadex/kbk/messages/verifier/impl/FileMessageVerifier.java similarity index 90% rename from messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/impl/FileMessageVerifier.java rename to messages/src/main/java/tech/carcadex/kbk/messages/verifier/impl/FileMessageVerifier.java index ab13a19..843f093 100644 --- a/messages/src/main/java/tech/carcadex/kotlinbukkitkit/messages/verifier/impl/FileMessageVerifier.java +++ b/messages/src/main/java/tech/carcadex/kbk/messages/verifier/impl/FileMessageVerifier.java @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.messages.verifier.impl; +package tech.carcadex.kbk.messages.verifier.impl; import lombok.SneakyThrows; -import tech.carcadex.kotlinbukkitkit.messages.verifier.MessageVerifier; +import tech.carcadex.kbk.messages.verifier.MessageVerifier; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; diff --git a/serialization/build.gradle.kts b/serialization/build.gradle.kts index d3fbb5e..183a681 100644 --- a/serialization/build.gradle.kts +++ b/serialization/build.gradle.kts @@ -10,8 +10,8 @@ plugins { } group = "tech.carcadex" -val globalArtifactId = "kotlinbukkitkit-serialization" -val globalName = "kotlinbukkitkit-serialization" +val globalArtifactId = "kbk-serialization" +val globalName = "kbk-serialization" repositories { mavenCentral() diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/Annotations.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/Annotations.kt similarity index 91% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/Annotations.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/Annotations.kt index 790154f..5d5453c 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/Annotations.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/Annotations.kt @@ -7,7 +7,7 @@ Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization +package tech.carcadex.kbk.serialization import kotlinx.serialization.SerialInfo diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/BukkitSerialModule.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/BukkitSerialModule.kt similarity index 58% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/BukkitSerialModule.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/BukkitSerialModule.kt index c42e96b..b7a4561 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/BukkitSerialModule.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/BukkitSerialModule.kt @@ -7,14 +7,14 @@ Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization +package tech.carcadex.kbk.serialization -import tech.carcadex.kotlinbukkitkit.serialization.serializers.BlockSerializer -import tech.carcadex.kotlinbukkitkit.serialization.serializers.ChunkSerializer -import tech.carcadex.kotlinbukkitkit.serialization.serializers.LocationSerializer -import tech.carcadex.kotlinbukkitkit.serialization.serializers.MaterialDataSerializer -import tech.carcadex.kotlinbukkitkit.serialization.serializers.MaterialSerializer -import tech.carcadex.kotlinbukkitkit.serialization.serializers.WorldSerializer +import tech.carcadex.kbk.serialization.serializers.BlockSerializer +import tech.carcadex.kbk.serialization.serializers.ChunkSerializer +import tech.carcadex.kbk.serialization.serializers.LocationSerializer +import tech.carcadex.kbk.serialization.serializers.MaterialDataSerializer +import tech.carcadex.kbk.serialization.serializers.MaterialSerializer +import tech.carcadex.kbk.serialization.serializers.WorldSerializer import kotlinx.serialization.modules.SerializersModule import kotlinx.serialization.modules.contextual diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/SerializationConfig.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/SerializationConfig.kt similarity index 67% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/SerializationConfig.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/SerializationConfig.kt index 65aa1d9..df7adcc 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/SerializationConfig.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/SerializationConfig.kt @@ -6,16 +6,16 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization +package tech.carcadex.kbk.serialization -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.bukkit.BukkitSerializationDecodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.bukkit.BukkitSerializationEncodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.StringFormatInterceptor +import tech.carcadex.kbk.serialization.interceptor.bukkit.BukkitSerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.bukkit.BukkitSerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.impl.StringFormatInterceptor import kotlinx.serialization.KSerializer import kotlinx.serialization.StringFormat import java.io.File -public typealias KotlinConfigEventObservable = (tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEvent) -> Unit +public typealias KotlinConfigEventObservable = (tech.carcadex.kbk.serialization.KotlinConfigEvent) -> Unit public enum class KotlinConfigEvent { SAVE, RELOAD } @@ -32,7 +32,7 @@ public class SerializationConfig( public val serializer: KSerializer, stringFormat: StringFormat, public val alwaysRestoreDefaults: Boolean, - public val eventObservable: tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEventObservable? = null, + public val eventObservable: tech.carcadex.kbk.serialization.KotlinConfigEventObservable? = null, ) { public lateinit var config: T private set @@ -51,19 +51,19 @@ public class SerializationConfig( /** * Save the current values of [model] in the configuration file. */ - public fun save(): tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig = apply { + public fun save(): tech.carcadex.kbk.serialization.SerializationConfig = apply { saveToFile(config) - eventObservable?.invoke(tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEvent.SAVE) + eventObservable?.invoke(tech.carcadex.kbk.serialization.KotlinConfigEvent.SAVE) } /** * Reloads the current values from the configuration to the [model]. */ - public fun reload(): tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig = apply { + public fun reload(): tech.carcadex.kbk.serialization.SerializationConfig = apply { loadFromFile() - eventObservable?.invoke(tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEvent.RELOAD) + eventObservable?.invoke(tech.carcadex.kbk.serialization.KotlinConfigEvent.RELOAD) } private fun loadFromFile() { diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/ConfigLifecycle.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/ConfigLifecycle.kt similarity index 76% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/ConfigLifecycle.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/ConfigLifecycle.kt index 285a76e..9146bce 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/ConfigLifecycle.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/ConfigLifecycle.kt @@ -6,15 +6,15 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.architecture +package tech.carcadex.kbk.serialization.architecture -import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin -import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.LifecycleListener -import tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEvent -import tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig -import tech.carcadex.kotlinbukkitkit.serialization.architecture.impl.ConfigDelegate -import tech.carcadex.kotlinbukkitkit.serialization.architecture.impl.getOrInsertConfigLifecycle -import tech.carcadex.kotlinbukkitkit.serialization.architecture.impl.registerConfiguration +import tech.carcadex.kbk.architecture.KotlinPlugin +import tech.carcadex.kbk.architecture.lifecycle.LifecycleListener +import tech.carcadex.kbk.serialization.KotlinConfigEvent +import tech.carcadex.kbk.serialization.SerializationConfig +import tech.carcadex.kbk.serialization.architecture.impl.ConfigDelegate +import tech.carcadex.kbk.serialization.architecture.impl.getOrInsertConfigLifecycle +import tech.carcadex.kbk.serialization.architecture.impl.registerConfiguration import kotlinx.serialization.KSerializer import kotlinx.serialization.SerializationException import kotlinx.serialization.StringFormat @@ -52,29 +52,29 @@ public fun KotlinPlugin.config( loadOnEnable: Boolean = false, saveOnDisable: Boolean = false, alwaysRestoreDefaults: Boolean = true, -): tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig { +): tech.carcadex.kbk.serialization.SerializationConfig { val configFile = File(dataFolder, file) - return tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig( + return tech.carcadex.kbk.serialization.SerializationConfig( defaultModel, configFile, serializer, type, alwaysRestoreDefaults, eventObservable = { - if (it == tech.carcadex.kotlinbukkitkit.serialization.KotlinConfigEvent.RELOAD) { + if (it == tech.carcadex.kbk.serialization.KotlinConfigEvent.RELOAD) { someConfigReloaded() } }, ).also { - registerConfiguration(it as tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig, loadOnEnable, saveOnDisable) + registerConfiguration(it as tech.carcadex.kbk.serialization.SerializationConfig, loadOnEnable, saveOnDisable) } } /** * Gets the config for the given [KType] */ -public fun LifecycleListener<*>.getConfig(type: KType): tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig<*> { +public fun LifecycleListener<*>.getConfig(type: KType): tech.carcadex.kbk.serialization.SerializationConfig<*> { try { val serialName = serializer(type).descriptor.serialName val config = plugin.getOrInsertConfigLifecycle().serializationConfigurations[serialName] diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/impl/ConfigLifecycle.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/impl/ConfigLifecycle.kt similarity index 71% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/impl/ConfigLifecycle.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/impl/ConfigLifecycle.kt index 4144b8d..e1206a1 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/architecture/impl/ConfigLifecycle.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/architecture/impl/ConfigLifecycle.kt @@ -6,16 +6,16 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.architecture.impl +package tech.carcadex.kbk.serialization.architecture.impl -import tech.carcadex.kotlinbukkitkit.architecture.KotlinPlugin -import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin -import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.LifecycleEvent -import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.LifecycleListener -import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.PluginLifecycleListener -import tech.carcadex.kotlinbukkitkit.architecture.lifecycle.getOrInsertGenericLifecycle -import tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig -import tech.carcadex.kotlinbukkitkit.serialization.architecture.getConfig +import tech.carcadex.kbk.architecture.KotlinPlugin +import tech.carcadex.kbk.architecture.extensions.WithPlugin +import tech.carcadex.kbk.architecture.lifecycle.LifecycleEvent +import tech.carcadex.kbk.architecture.lifecycle.LifecycleListener +import tech.carcadex.kbk.architecture.lifecycle.PluginLifecycleListener +import tech.carcadex.kbk.architecture.lifecycle.getOrInsertGenericLifecycle +import tech.carcadex.kbk.serialization.SerializationConfig +import tech.carcadex.kbk.serialization.architecture.getConfig import kotlin.properties.ReadOnlyProperty import kotlin.reflect.KProperty import kotlin.reflect.KType @@ -31,10 +31,10 @@ internal class ConfigLifecycle( override val plugin: KotlinPlugin, ) : PluginLifecycleListener, WithPlugin { // String = Descriptor name - internal val serializationConfigurations = hashMapOf>() + internal val serializationConfigurations = hashMapOf>() - internal val onEnableLoadSerializationConfigurations = mutableListOf>() - internal val onDisableSaveSerializationConfigurations = mutableListOf>() + internal val onEnableLoadSerializationConfigurations = mutableListOf>() + internal val onDisableSaveSerializationConfigurations = mutableListOf>() override fun invoke(event: LifecycleEvent) { when (event) { @@ -62,7 +62,7 @@ internal class ConfigLifecycle( } internal fun KotlinPlugin.registerConfiguration( - config: tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig, + config: tech.carcadex.kbk.serialization.SerializationConfig, loadOnEnable: Boolean, saveOnDisable: Boolean, ) { @@ -87,7 +87,7 @@ public class ConfigDelegate( public val type: KType, public val deep: T.() -> R, ) : ReadOnlyProperty, R> { - private var configCache: tech.carcadex.kotlinbukkitkit.serialization.SerializationConfig<*>? = null + private var configCache: tech.carcadex.kbk.serialization.SerializationConfig<*>? = null override fun getValue( thisRef: LifecycleListener<*>, diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationDecodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationDecodeInterceptor.kt similarity index 95% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationDecodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationDecodeInterceptor.kt index 028a8d1..8e9a455 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationDecodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationDecodeInterceptor.kt @@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor +package tech.carcadex.kbk.serialization.interceptor import kotlinx.serialization.descriptors.SerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationEncodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationEncodeInterceptor.kt similarity index 95% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationEncodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationEncodeInterceptor.kt index 7cd9b8b..da5789e 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/ClearSerializationEncodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/ClearSerializationEncodeInterceptor.kt @@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor +package tech.carcadex.kbk.serialization.interceptor import kotlinx.serialization.descriptors.SerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationDecodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationDecodeInterceptor.kt similarity index 94% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationDecodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationDecodeInterceptor.kt index 7b0e182..4ddbb5c 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationDecodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationDecodeInterceptor.kt @@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor +package tech.carcadex.kbk.serialization.interceptor import kotlinx.serialization.descriptors.SerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationEncodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationEncodeInterceptor.kt similarity index 94% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationEncodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationEncodeInterceptor.kt index 52f87fb..d3211e1 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/SerializationEncodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/SerializationEncodeInterceptor.kt @@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor +package tech.carcadex.kbk.serialization.interceptor import kotlinx.serialization.descriptors.SerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt similarity index 58% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt index ce59ad2..ef072e7 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationDecodeInterceptor.kt @@ -6,12 +6,12 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.bukkit +package tech.carcadex.kbk.serialization.interceptor.bukkit -import tech.carcadex.kotlinbukkitkit.extensions.translateColor -import tech.carcadex.kotlinbukkitkit.serialization.ChangeColor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.ClearSerializationDecodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationDecodeInterceptor +import tech.carcadex.kbk.extensions.translateColor +import tech.carcadex.kbk.serialization.ChangeColor +import tech.carcadex.kbk.serialization.interceptor.ClearSerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationDecodeInterceptor import kotlinx.serialization.descriptors.SerialDescriptor public object BukkitSerializationDecodeInterceptor : SerializationDecodeInterceptor by ClearSerializationDecodeInterceptor() { @@ -21,7 +21,7 @@ public object BukkitSerializationDecodeInterceptor : SerializationDecodeIntercep } private fun useChangeColor(descriptor: SerialDescriptor, index: Int, value: String): String { - descriptor.findElementAnnotation(index) ?: return value + descriptor.findElementAnnotation(index) ?: return value return value.translateColor() } diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt similarity index 58% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt index b0fc7b2..32932d8 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/BukkitSerializationEncodeInterceptor.kt @@ -6,12 +6,12 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.bukkit +package tech.carcadex.kbk.serialization.interceptor.bukkit -import tech.carcadex.kotlinbukkitkit.extensions.reverseTranslateColor -import tech.carcadex.kotlinbukkitkit.serialization.ChangeColor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.ClearSerializationEncodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationEncodeInterceptor +import tech.carcadex.kbk.extensions.reverseTranslateColor +import tech.carcadex.kbk.serialization.ChangeColor +import tech.carcadex.kbk.serialization.interceptor.ClearSerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationEncodeInterceptor import kotlinx.serialization.descriptors.SerialDescriptor public object BukkitSerializationEncodeInterceptor : SerializationEncodeInterceptor by ClearSerializationEncodeInterceptor() { @@ -21,7 +21,7 @@ public object BukkitSerializationEncodeInterceptor : SerializationEncodeIntercep } private fun useChangeColor(descriptor: SerialDescriptor, index: Int, value: String): String { - descriptor.findElementAnnotation(index) ?: return value + descriptor.findElementAnnotation(index) ?: return value return value.reverseTranslateColor() } diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/Utils.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/Utils.kt similarity index 89% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/Utils.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/Utils.kt index da38cd0..d52bcc4 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/bukkit/Utils.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/bukkit/Utils.kt @@ -6,7 +6,7 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.bukkit +package tech.carcadex.kbk.serialization.interceptor.bukkit import kotlinx.serialization.descriptors.SerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/StringFormatInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/StringFormatInterceptor.kt similarity index 69% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/StringFormatInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/StringFormatInterceptor.kt index 5daba0a..4ca805c 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/StringFormatInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/StringFormatInterceptor.kt @@ -6,12 +6,12 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl +package tech.carcadex.kbk.serialization.interceptor.impl -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationDecodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationEncodeInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.decoder.DeserializationStrategyInterceptor -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.encoder.SerializationStrategyInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.impl.decoder.DeserializationStrategyInterceptor +import tech.carcadex.kbk.serialization.interceptor.impl.encoder.SerializationStrategyInterceptor import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.StringFormat diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt similarity index 94% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt index f5fc30c..7834bf3 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/CompositeDecoderInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.decoder +package tech.carcadex.kbk.serialization.interceptor.impl.decoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationDecodeInterceptor import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.CompositeDecoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DecoderInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DecoderInterceptor.kt similarity index 84% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DecoderInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DecoderInterceptor.kt index 05e7ecc..c9e3fc6 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DecoderInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DecoderInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.decoder +package tech.carcadex.kbk.serialization.interceptor.impl.decoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationDecodeInterceptor import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.CompositeDecoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt similarity index 79% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt index 9ad0092..0eadb32 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/decoder/DeserializationStrategyInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.decoder +package tech.carcadex.kbk.serialization.interceptor.impl.decoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationDecodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationDecodeInterceptor import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.encoding.Decoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt similarity index 94% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt index e56d64f..9cb33cf 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/CompositeEncoderInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.encoder +package tech.carcadex.kbk.serialization.interceptor.impl.encoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationEncodeInterceptor import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.CompositeEncoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/EncoderInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/EncoderInterceptor.kt similarity index 86% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/EncoderInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/EncoderInterceptor.kt index 6f679c8..cacef7d 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/EncoderInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/EncoderInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.encoder +package tech.carcadex.kbk.serialization.interceptor.impl.encoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationEncodeInterceptor import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.descriptors.SerialDescriptor import kotlinx.serialization.encoding.CompositeEncoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt similarity index 79% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt index 450df0b..5bd44dd 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/interceptor/impl/encoder/SerializationStrategyInterceptor.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.interceptor.impl.encoder +package tech.carcadex.kbk.serialization.interceptor.impl.encoder -import tech.carcadex.kotlinbukkitkit.serialization.interceptor.SerializationEncodeInterceptor +import tech.carcadex.kbk.serialization.interceptor.SerializationEncodeInterceptor import kotlinx.serialization.SerializationStrategy import kotlinx.serialization.encoding.Encoder diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/BlockSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/BlockSerializer.kt similarity index 89% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/BlockSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/BlockSerializer.kt index cea8764..a517985 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/BlockSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/BlockSerializer.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions.WorldNotFoundException +import tech.carcadex.kbk.serialization.serializers.exceptions.WorldNotFoundException import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ChunkSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ChunkSerializer.kt similarity index 89% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ChunkSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ChunkSerializer.kt index 749345b..316ada3 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ChunkSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ChunkSerializer.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions.WorldNotFoundException +import tech.carcadex.kbk.serialization.serializers.exceptions.WorldNotFoundException import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ComponentSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ComponentSerializer.kt new file mode 100644 index 0000000..053d9ef --- /dev/null +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ComponentSerializer.kt @@ -0,0 +1,3 @@ +package tech.carcadex.kbk.serialization.serializers + +// TODO: diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ItemStackSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ItemStackSerializer.kt similarity index 95% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ItemStackSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ItemStackSerializer.kt index 6322c59..3647d31 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ItemStackSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/ItemStackSerializer.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/LocationSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/LocationSerializer.kt similarity index 91% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/LocationSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/LocationSerializer.kt index 5256e72..bbbd481 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/LocationSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/LocationSerializer.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions.WorldNotFoundException +import tech.carcadex.kbk.serialization.serializers.exceptions.WorldNotFoundException import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialDataSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialDataSerializer.kt similarity index 92% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialDataSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialDataSerializer.kt index 09a8b5a..3d58d22 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialDataSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialDataSerializer.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.extensions.asMaterialData +import tech.carcadex.kbk.extensions.asMaterialData import kotlinx.serialization.KSerializer import kotlinx.serialization.Serializer import kotlinx.serialization.descriptors.PrimitiveKind diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialSerializer.kt similarity index 87% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialSerializer.kt index 4a68a7d..5367679 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/MaterialSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/MaterialSerializer.kt @@ -6,9 +6,9 @@ AUTHOR: https://github.com/DevSrSouza Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions.MaterialNotFoundException +import tech.carcadex.kbk.serialization.serializers.exceptions.MaterialNotFoundException import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/WorldSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/WorldSerializer.kt similarity index 87% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/WorldSerializer.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/WorldSerializer.kt index 99a0763..3aa0edd 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/WorldSerializer.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/WorldSerializer.kt @@ -7,9 +7,9 @@ Thanks DevSrSouza for KotlinBukkitAPI */ -package tech.carcadex.kotlinbukkitkit.serialization.serializers +package tech.carcadex.kbk.serialization.serializers -import tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions.WorldNotFoundException +import tech.carcadex.kbk.serialization.serializers.exceptions.WorldNotFoundException import kotlinx.serialization.KSerializer import kotlinx.serialization.descriptors.PrimitiveKind import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/MaterialNotFoundException.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/MaterialNotFoundException.kt similarity index 70% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/MaterialNotFoundException.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/MaterialNotFoundException.kt index 2d64dca..8d41ec4 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/MaterialNotFoundException.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/MaterialNotFoundException.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions +package tech.carcadex.kbk.serialization.serializers.exceptions import java.lang.Exception diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/WorldNotFoundException.kt b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/WorldNotFoundException.kt similarity index 67% rename from serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/WorldNotFoundException.kt rename to serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/WorldNotFoundException.kt index 7b92b08..4d69cfe 100644 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/exceptions/WorldNotFoundException.kt +++ b/serialization/src/main/kotlin/tech/carcadex/kbk/serialization/serializers/exceptions/WorldNotFoundException.kt @@ -1,3 +1,3 @@ -package tech.carcadex.kotlinbukkitkit.serialization.serializers.exceptions +package tech.carcadex.kbk.serialization.serializers.exceptions public class WorldNotFoundException(public val world: String) : Exception("Could not deserialize the World=$world because was not found on the Server.") diff --git a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ComponentSerializer.kt b/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ComponentSerializer.kt deleted file mode 100644 index 46a7741..0000000 --- a/serialization/src/main/kotlin/tech/carcadex/kotlinbukkitkit/serialization/serializers/ComponentSerializer.kt +++ /dev/null @@ -1,3 +0,0 @@ -package tech.carcadex.kotlinbukkitkit.serialization.serializers - -// TODO: diff --git a/src/main/kotlin/tech/carcadex/kotlinbukkitkit/KBKInfo.kt b/src/main/kotlin/tech/carcadex/kotlinbukkitkit/KBKInfo.kt index 7df3ee0..33e91aa 100644 --- a/src/main/kotlin/tech/carcadex/kotlinbukkitkit/KBKInfo.kt +++ b/src/main/kotlin/tech/carcadex/kotlinbukkitkit/KBKInfo.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit +package tech.carcadex.kbk object KBKInfo { const val KBK_VERSION = "1.0.1.0"; diff --git a/thirdparty/build.gradle.kts b/thirdparty/build.gradle.kts index d748887..c26b615 100644 --- a/thirdparty/build.gradle.kts +++ b/thirdparty/build.gradle.kts @@ -10,8 +10,8 @@ plugins { } group = "tech.carcadex" -val globalArtifactId = "kotlinbukkitkit-thirdparty" -val globalName = "kotlinbukkitkit-thirdparty" +val globalArtifactId = "kbk-thirdparty" +val globalName = "kbk-thirdparty" repositories { mavenCentral() diff --git a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordController.kt b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordController.kt similarity index 97% rename from thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordController.kt rename to thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordController.kt index 1e437e9..fbbba21 100644 --- a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordController.kt +++ b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordController.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.bungeecord +package tech.carcadex.kbk.bungeecord import org.bukkit.Bukkit import org.bukkit.entity.Player diff --git a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordUtils.kt b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordUtils.kt similarity index 92% rename from thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordUtils.kt rename to thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordUtils.kt index 02bc3a4..e0b7a2d 100644 --- a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/BungeeCordUtils.kt +++ b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/BungeeCordUtils.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.bungeecord +package tech.carcadex.kbk.bungeecord import com.google.common.io.ByteStreams import org.bukkit.entity.Player diff --git a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/ExBungeeCord.kt b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/ExBungeeCord.kt similarity index 97% rename from thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/ExBungeeCord.kt rename to thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/ExBungeeCord.kt index 769f37e..cc6f905 100644 --- a/thirdparty/src/main/kotlin/tech/carcadex/kotlinbukkitkit/bungeecord/ExBungeeCord.kt +++ b/thirdparty/src/main/kotlin/tech/carcadex/kbk/bungeecord/ExBungeeCord.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.bungeecord +package tech.carcadex.kbk.bungeecord import org.bukkit.entity.Player import com.google.common.io.ByteStreams diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationList.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationList.kt similarity index 98% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationList.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationList.kt index 6e70f6e..5de59c1 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationList.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationList.kt @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.utility.collections +package tech.carcadex.kbk.utility.collections -import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin -import tech.carcadex.kotlinbukkitkit.extensions.scheduler +import tech.carcadex.kbk.architecture.extensions.WithPlugin +import tech.carcadex.kbk.extensions.scheduler import org.bukkit.plugin.Plugin import org.bukkit.scheduler.BukkitTask diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationMap.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationMap.kt similarity index 96% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationMap.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationMap.kt index fb75f3c..e05cc96 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ExpirationMap.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ExpirationMap.kt @@ -1,8 +1,8 @@ -package tech.carcadex.kotlinbukkitkit.utility.collections +package tech.carcadex.kbk.utility.collections -import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin -import tech.carcadex.kotlinbukkitkit.extensions.scheduler -import tech.carcadex.kotlinbukkitkit.utility.extensions.now +import tech.carcadex.kbk.architecture.extensions.WithPlugin +import tech.carcadex.kbk.extensions.scheduler +import tech.carcadex.kbk.utility.extensions.now import org.bukkit.plugin.Plugin import org.bukkit.scheduler.BukkitTask import java.util.* diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ObservableCollections.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ObservableCollections.kt similarity index 99% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ObservableCollections.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ObservableCollections.kt index d10bd9a..af601b6 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/ObservableCollections.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/ObservableCollections.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.collections +package tech.carcadex.kbk.utility.collections public typealias ObservableListener = (ObservableAction) -> Unit public enum class ObservableAction { ADD, SET, REPLACE, REMOVE, CLEAR } diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/OnlinePlayerCollections.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/OnlinePlayerCollections.kt similarity index 96% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/OnlinePlayerCollections.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/OnlinePlayerCollections.kt index 0f5ea85..77fef87 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/collections/OnlinePlayerCollections.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/collections/OnlinePlayerCollections.kt @@ -1,10 +1,10 @@ -package tech.carcadex.kotlinbukkitkit.utility.collections +package tech.carcadex.kbk.utility.collections -import tech.carcadex.kotlinbukkitkit.architecture.extensions.WithPlugin -import tech.carcadex.kotlinbukkitkit.extensions.KListener -import tech.carcadex.kotlinbukkitkit.extensions.event -import tech.carcadex.kotlinbukkitkit.extensions.registerEvents -import tech.carcadex.kotlinbukkitkit.extensions.unregisterListener +import tech.carcadex.kbk.architecture.extensions.WithPlugin +import tech.carcadex.kbk.extensions.KListener +import tech.carcadex.kbk.extensions.event +import tech.carcadex.kbk.extensions.registerEvents +import tech.carcadex.kbk.extensions.unregisterListener import org.bukkit.entity.Player import org.bukkit.event.player.PlayerKickEvent import org.bukkit.event.player.PlayerQuitEvent diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Collection.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Collection.kt similarity index 92% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Collection.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Collection.kt index 4fdd6cc..e15cc34 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Collection.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Collection.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.extensions +package tech.carcadex.kbk.utility.extensions public fun Collection.containsIgnoreCase( element: String, diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Duration.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Duration.kt similarity index 92% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Duration.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Duration.kt index a5b1b59..953aac9 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Duration.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Duration.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.extensions +package tech.carcadex.kbk.utility.extensions import kotlin.time.Duration import kotlin.time.Duration.Companion.milliseconds diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/PositionRange.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/PositionRange.kt similarity index 86% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/PositionRange.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/PositionRange.kt index a4e6b47..53b77b1 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/PositionRange.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/PositionRange.kt @@ -1,13 +1,13 @@ -package tech.carcadex.kotlinbukkitkit.utility.extensions +package tech.carcadex.kbk.utility.extensions -import tech.carcadex.kotlinbukkitkit.utility.types.BlockPos -import tech.carcadex.kotlinbukkitkit.utility.types.ChunkPos -import tech.carcadex.kotlinbukkitkit.utility.types.VectorComparable -import tech.carcadex.kotlinbukkitkit.utility.types.asBlockPos -import tech.carcadex.kotlinbukkitkit.utility.types.asBukkitBlock -import tech.carcadex.kotlinbukkitkit.utility.types.asBukkitChunk -import tech.carcadex.kotlinbukkitkit.utility.types.asBukkitLocation -import tech.carcadex.kotlinbukkitkit.utility.types.asPos +import tech.carcadex.kbk.utility.types.BlockPos +import tech.carcadex.kbk.utility.types.ChunkPos +import tech.carcadex.kbk.utility.types.VectorComparable +import tech.carcadex.kbk.utility.types.asBlockPos +import tech.carcadex.kbk.utility.types.asBukkitBlock +import tech.carcadex.kbk.utility.types.asBukkitChunk +import tech.carcadex.kbk.utility.types.asBukkitLocation +import tech.carcadex.kbk.utility.types.asPos import org.bukkit.Chunk import org.bukkit.Location import org.bukkit.block.Block diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Random.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Random.kt similarity index 90% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Random.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Random.kt index a882c7f..c8aa70c 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/Random.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/Random.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.extensions +package tech.carcadex.kbk.utility.extensions import kotlin.random.Random diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/String.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/String.kt similarity index 94% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/String.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/String.kt index 69de176..0ad235e 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/extensions/String.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/extensions/String.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.extensions +package tech.carcadex.kbk.utility.extensions private val unicodeRegex = "((\\\\u)([0-9]{4}))".toRegex() diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/Position.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/types/Position.kt similarity index 94% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/Position.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/types/Position.kt index 8b5ecbf..e966129 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/Position.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/types/Position.kt @@ -1,7 +1,7 @@ -package tech.carcadex.kotlinbukkitkit.utility.types +package tech.carcadex.kbk.utility.types -import tech.carcadex.kotlinbukkitkit.utility.extensions.PosRange -import tech.carcadex.kotlinbukkitkit.utility.extensions.PosRangeIterator +import tech.carcadex.kbk.utility.extensions.PosRange +import tech.carcadex.kbk.utility.extensions.PosRangeIterator import org.bukkit.Chunk import org.bukkit.Location import org.bukkit.World diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/TimeFormat.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/types/TimeFormat.kt similarity index 98% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/TimeFormat.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/types/TimeFormat.kt index a90e692..348d8e0 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/types/TimeFormat.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/types/TimeFormat.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.types +package tech.carcadex.kbk.utility.types import kotlinx.serialization.Serializable diff --git a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/utils/ComparatorUtils.kt b/utility/src/main/kotlin/tech/carcadex/kbk/utility/utils/ComparatorUtils.kt similarity index 92% rename from utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/utils/ComparatorUtils.kt rename to utility/src/main/kotlin/tech/carcadex/kbk/utility/utils/ComparatorUtils.kt index d921361..b98b429 100644 --- a/utility/src/main/kotlin/tech/carcadex/kotlinbukkitkit/utility/utils/ComparatorUtils.kt +++ b/utility/src/main/kotlin/tech/carcadex/kbk/utility/utils/ComparatorUtils.kt @@ -1,4 +1,4 @@ -package tech.carcadex.kotlinbukkitkit.utility.utils +package tech.carcadex.kbk.utility.utils import org.bukkit.entity.Player import org.bukkit.plugin.Plugin