Skip to content

Commit 7686abd

Browse files
authored
Merge pull request #52 from Astra-Interactive/dependabot/gradle/versions-6ca88bba75
build(deps): bump the versions group with 23 updates
2 parents e450a38 + 2f124b1 commit 7686abd

File tree

11 files changed

+63
-57
lines changed

11 files changed

+63
-57
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ makeevrserg.java.ktarget=21
99
# Project
1010
makeevrserg.project.name=AstraTemplate
1111
makeevrserg.project.group=ru.astrainteractive.astratemplate
12-
makeevrserg.project.version.string=7.7.3
12+
makeevrserg.project.version.string=7.7.4
1313
makeevrserg.project.description=Template plugin for EmpireProjekt
1414
makeevrserg.project.developers=makeevrserg|Makeev Roman|makeevrserg@gmail.com
1515
makeevrserg.project.url=https://github.com/Astra-Interactive/AstraTemplate

gradle/libs.versions.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
[versions]
22
# Kotlin
33
kotlin-version = "2.0.0" # https://github.com/JetBrains/kotlin
4-
kotlin-coroutines = "1.9.0" # https://github.com/Kotlin/kotlinx.coroutines
5-
kotlin-json = "1.7.3" # https://github.com/Kotlin/kotlinx.serialization
6-
kotlin-kaml = "0.66.0" # https://github.com/charleskorn/kaml
4+
kotlin-coroutines = "1.10.1" # https://github.com/Kotlin/kotlinx.coroutines
5+
kotlin-json = "1.8.0" # https://github.com/Kotlin/kotlinx.serialization
6+
kotlin-kaml = "0.67.0" # https://github.com/charleskorn/kaml
77

88
# Drivers
9-
driver-jdbc = "3.47.1.0" # https://github.com/xerial/sqlite-jdbc
9+
driver-jdbc = "3.48.0.0" # https://github.com/xerial/sqlite-jdbc
1010
driver-mysql = "8.0.33" # https://github.com/mysql/mysql-connector-j
1111

1212
# Minecraft
1313
minecraft-version = "1.21"
14-
minecraft-velocity = "3.3.0-SNAPSHOT" # https://github.com/PaperMC/Velocity
15-
minecraft-spigot = "1.21-R0.1-SNAPSHOT" # https://github.com/PaperMC/Paper
14+
minecraft-velocity = "3.4.0-SNAPSHOT" # https://github.com/PaperMC/Velocity
15+
minecraft-spigot = "1.21.3-R0.1-SNAPSHOT" # https://github.com/PaperMC/Paper
1616
minecraft-papi = "2.11.6" # https://github.com/PlaceholderAPI/PlaceholderAPI
1717
minecraft-protocollib = "5.3.0"
1818
minecraft-wg = "7.0.7"
1919
minecraft-vault = "1.7.1" # https://github.com/MilkBowl/VaultAPI
2020
minecraft-coreprotect = "21.2"
21-
minecraft-astralibs = "3.17.0" # https://github.com/Astra-Interactive/AstraLibs
21+
minecraft-astralibs = "3.19.2" # https://github.com/Astra-Interactive/AstraLibs
2222
minecraft-bstats = "3.1.0"
23-
minecraft-mockbukkit = "4.12.0"
23+
minecraft-mockbukkit = "4.27.0"
2424

2525
# Testing
2626
tests-org-testing = "7.10.2"
2727
tests-junit = "4.12"
2828
tests-mockito = "4.0.0"
29-
tests-junit-jupiter-api = "5.11.3"
30-
tests-junit-bom = "5.11.3"
29+
tests-junit-jupiter-api = "5.11.4"
30+
tests-junit-bom = "5.11.4"
3131

3232
# Fabric
3333
minecraft-fabric-loom = "1.9.2"
3434
minecraft-fabric-kotlin = "1.13.0+"
35-
minecraft-fabric-loader = "0.16.9"
36-
minecraft-fabric-api = "0.111.0+"
35+
minecraft-fabric-loader = "0.16.10"
36+
minecraft-fabric-api = "0.114.4+"
3737
minecraft-fabric-yarn = "1.21+build.2"
3838

3939
# Shadow
@@ -43,12 +43,12 @@ gradle-shadow = "8.1.1"
4343
gradle-buildconfig = "5.5.1"
4444

4545
# Exposed
46-
exposed = "0.57.0"
46+
exposed = "0.58.0"
4747

4848
# klibs
4949
klibs-gradleplugin = "1.5.0-alpha02" # https://github.com/makeevrserg/gradle-plugin
50-
klibs-kstorage = "3.2.1" # https://github.com/makeevrserg/klibs.kstorage
51-
klibs-mikro = "1.8.11" # https://github.com/makeevrserg/klibs.mikro
50+
klibs-kstorage = "3.2.3" # https://github.com/makeevrserg/klibs.kstorage
51+
klibs-mikro = "1.8.13" # https://github.com/makeevrserg/klibs.mikro
5252

5353
[bundles]
5454
exposed = ["exposed-java-time", "exposed-jdbc", "exposed-dao", "exposed-core"]

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/DefaultErrorHandler.kt

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ package ru.astrainteractive.astratemplate.command
22

33
import ru.astrainteractive.astralibs.command.api.context.BukkitCommandContext
44
import ru.astrainteractive.astralibs.command.api.error.ErrorHandler
5-
import ru.astrainteractive.astralibs.command.api.exception.BukkitCommandException
6-
import ru.astrainteractive.astralibs.command.api.exception.DefaultCommandException
5+
import ru.astrainteractive.astralibs.command.api.exception.ArgumentTypeException
6+
import ru.astrainteractive.astralibs.command.api.exception.BadArgumentException
7+
import ru.astrainteractive.astralibs.command.api.exception.NoPermissionException
8+
import ru.astrainteractive.astralibs.command.api.exception.NoPlayerException
9+
import ru.astrainteractive.astralibs.command.api.exception.NoPotionEffectTypeException
710
import ru.astrainteractive.astralibs.kyori.KyoriComponentSerializer
811
import ru.astrainteractive.astralibs.logging.JUtiltLogger
912
import ru.astrainteractive.astralibs.logging.Logger
@@ -21,40 +24,40 @@ internal class DefaultErrorHandler(
2124
private val translation by translationKrate
2225
private val kyori by kyoriKrate
2326

24-
override fun handle(commandContext: BukkitCommandContext, throwable: Throwable) {
27+
override fun handle(ctx: BukkitCommandContext, throwable: Throwable) {
2528
with(kyori) {
2629
when (throwable) {
2730
is AddItemCommand.Error -> {
2831
when (throwable) {
2932
AddItemCommand.Error.ItemNotfound -> {
30-
commandContext.sender.sendMessage(translation.fault.itemNotFound.component)
33+
ctx.sender.sendMessage(translation.fault.itemNotFound.component)
3134
}
3235

3336
AddItemCommand.Error.SenderNotPlayer -> {
34-
commandContext.sender.sendMessage(translation.fault.notPlayer.component)
37+
ctx.sender.sendMessage(translation.fault.notPlayer.component)
3538
}
3639
}
3740
}
3841

3942
is GuiCommand.Error -> {
4043
when (throwable) {
4144
GuiCommand.Error.NotPlayer -> {
42-
commandContext.sender.sendMessage(translation.fault.notPlayer.component)
45+
ctx.sender.sendMessage(translation.fault.notPlayer.component)
4346
}
4447
}
4548
}
4649

47-
is BukkitCommandException.NoPlayerException -> {
48-
commandContext.sender.sendMessage(translation.fault.playerNotExists.component)
50+
is NoPlayerException -> {
51+
ctx.sender.sendMessage(translation.fault.playerNotExists.component)
4952
}
5053

51-
is DefaultCommandException.NoPermissionException -> {
52-
commandContext.sender.sendMessage(translation.fault.noPermission.component)
54+
is NoPermissionException -> {
55+
ctx.sender.sendMessage(translation.fault.noPermission.component)
5356
}
5457

55-
is BukkitCommandException.NoPotionEffectTypeException,
56-
is DefaultCommandException.BadArgumentException,
57-
is DefaultCommandException.ArgumentTypeException -> {
58+
is NoPotionEffectTypeException,
59+
is BadArgumentException,
60+
is ArgumentTypeException -> {
5861
error { "#handle intentionally unhandled error: $throwable" }
5962
}
6063

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/additem/AddItemCommandParser.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ import org.bukkit.Bukkit
44
import org.bukkit.Material
55
import org.bukkit.entity.Player
66
import ru.astrainteractive.astralibs.command.api.context.BukkitCommandContext
7-
import ru.astrainteractive.astralibs.command.api.exception.BukkitCommandException
7+
import ru.astrainteractive.astralibs.command.api.exception.NoPlayerException
88
import ru.astrainteractive.astralibs.command.api.parser.CommandParser
99

1010
internal class AddItemCommandParser : CommandParser<AddItemCommand.Result, BukkitCommandContext> {
11-
override fun parse(commandContext: BukkitCommandContext): AddItemCommand.Result {
12-
if (commandContext.sender !is Player) throw AddItemCommand.Error.SenderNotPlayer
11+
override fun parse(ctx: BukkitCommandContext): AddItemCommand.Result {
12+
if (ctx.sender !is Player) throw AddItemCommand.Error.SenderNotPlayer
1313

14-
val playerString = commandContext.args.getOrNull(0)
14+
val playerString = ctx.args.getOrNull(0)
1515
val player = playerString
1616
?.let { value -> Bukkit.getOnlinePlayers().firstOrNull { it.name == value } }
17-
?: throw BukkitCommandException.NoPlayerException(playerString.orEmpty())
17+
?: throw NoPlayerException(playerString.orEmpty())
1818

19-
val amount = commandContext.args.getOrNull(2)
19+
val amount = ctx.args.getOrNull(2)
2020
?.toIntOrNull() ?: 1
2121

22-
val item = commandContext.args.getOrNull(1)
22+
val item = ctx.args.getOrNull(1)
2323
?.let(Material::getMaterial)
2424
?: throw AddItemCommand.Error.ItemNotfound
2525

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/additem/AddItemCommandRegistry.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ru.astrainteractive.astratemplate.command.additem
33
import org.bukkit.Bukkit
44
import org.bukkit.Material
55
import org.bukkit.plugin.java.JavaPlugin
6-
import ru.astrainteractive.astralibs.command.api.util.PluginExt.registerCommand
6+
import ru.astrainteractive.astralibs.command.api.util.PluginExt.setCommandExecutor
77
import ru.astrainteractive.astralibs.util.StringListExt.withEntry
88
import ru.astrainteractive.astratemplate.command.DefaultErrorHandler
99
import ru.astrainteractive.astratemplate.command.additem.di.AddItemCommandDependencies
@@ -25,7 +25,7 @@ internal class AddItemCommandRegistry(
2525

2626
fun register() {
2727
tabCompleter(plugin)
28-
plugin.registerCommand(
28+
plugin.setCommandExecutor(
2929
alias = alias,
3030
commandParser = AddItemCommandParser(),
3131
commandExecutor = AddItemExecutor(),

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/damage/DamageCommandRegistry.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package ru.astrainteractive.astratemplate.command.damage
22

33
import org.bukkit.Bukkit
44
import ru.astrainteractive.astralibs.command.api.context.BukkitCommandContext
5-
import ru.astrainteractive.astralibs.command.api.exception.BukkitCommandException
6-
import ru.astrainteractive.astralibs.command.api.exception.DefaultCommandException
5+
import ru.astrainteractive.astralibs.command.api.exception.NoPermissionException
6+
import ru.astrainteractive.astralibs.command.api.exception.NoPlayerException
77
import ru.astrainteractive.astralibs.command.api.executor.CommandExecutor
88
import ru.astrainteractive.astralibs.command.api.parser.CommandParser
9-
import ru.astrainteractive.astralibs.command.api.util.PluginExt.registerCommand
9+
import ru.astrainteractive.astralibs.command.api.util.PluginExt.setCommandExecutor
1010
import ru.astrainteractive.astralibs.permission.BukkitPermissibleExt.toPermissible
1111
import ru.astrainteractive.astratemplate.command.DefaultErrorHandler
1212
import ru.astrainteractive.astratemplate.command.damage.di.DamageCommandDependencies
@@ -20,12 +20,12 @@ internal class DamageCommandRegistry(
2020
private inner class CommandParserImpl : CommandParser<DamageCommand.Result, BukkitCommandContext> {
2121
override fun parse(commandContext: BukkitCommandContext): DamageCommand.Result {
2222
val hasPermission = commandContext.sender.toPermissible().hasPermission(PluginPermission.Damage)
23-
if (!hasPermission) throw DefaultCommandException.NoPermissionException(PluginPermission.Damage)
23+
if (!hasPermission) throw NoPermissionException(PluginPermission.Damage)
2424

2525
val playerString = commandContext.args.getOrNull(0)
2626
val player = playerString
2727
?.let(Bukkit::getPlayerExact)
28-
?: throw BukkitCommandException.NoPlayerException(playerString.orEmpty())
28+
?: throw NoPlayerException(playerString.orEmpty())
2929

3030
val damage = commandContext.args.getOrNull(1)
3131
?.toDoubleOrNull()
@@ -59,7 +59,7 @@ internal class DamageCommandRegistry(
5959

6060
fun register() {
6161
tabCompleter()
62-
plugin.registerCommand(
62+
plugin.setCommandExecutor(
6363
alias = alias,
6464
commandParser = CommandParserImpl(),
6565
commandExecutor = CommandExecutorImpl(),

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/gui/GuiCommandRegistry.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ru.astrainteractive.astratemplate.command.gui
22

33
import org.bukkit.entity.Player
4-
import ru.astrainteractive.astralibs.command.api.util.PluginExt.registerCommand
4+
import ru.astrainteractive.astralibs.command.api.util.PluginExt.setCommandExecutor
55
import ru.astrainteractive.astratemplate.command.DefaultErrorHandler
66
import ru.astrainteractive.astratemplate.command.gui.di.GuiCommandDependencies
77
import ru.astrainteractive.astratemplate.gui.router.Router
@@ -11,7 +11,7 @@ internal class GuiCommandRegistry(
1111
) : GuiCommandDependencies by dependencies {
1212

1313
fun register() {
14-
plugin.registerCommand(
14+
plugin.setCommandExecutor(
1515
alias = "atempgui",
1616
commandParser = commandParser@{ commandContext ->
1717
val player = commandContext.sender as? Player ?: throw GuiCommand.Error.NotPlayer

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/reload/ReloadCommandRegistry.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ package ru.astrainteractive.astratemplate.command.reload
22

33
import org.bukkit.command.CommandSender
44
import ru.astrainteractive.astralibs.command.api.context.BukkitCommandContext
5-
import ru.astrainteractive.astralibs.command.api.exception.DefaultCommandException
5+
import ru.astrainteractive.astralibs.command.api.exception.NoPermissionException
66
import ru.astrainteractive.astralibs.command.api.executor.CommandExecutor
77
import ru.astrainteractive.astralibs.command.api.parser.CommandParser
8-
import ru.astrainteractive.astralibs.command.api.util.PluginExt.registerCommand
8+
import ru.astrainteractive.astralibs.command.api.util.PluginExt.setCommandExecutor
99
import ru.astrainteractive.astralibs.permission.BukkitPermissibleExt.toPermissible
1010
import ru.astrainteractive.astratemplate.AstraTemplate
1111
import ru.astrainteractive.astratemplate.command.DefaultErrorHandler
@@ -21,10 +21,10 @@ internal class ReloadCommandRegistry(
2121
}
2222

2323
private inner class CommandParserImpl : CommandParser<ReloadCommand.Result, BukkitCommandContext> {
24-
override fun parse(commandContext: BukkitCommandContext): ReloadCommand.Result {
25-
val hasPermission = commandContext.sender.toPermissible().hasPermission(PluginPermission.Damage)
26-
if (!hasPermission) throw DefaultCommandException.NoPermissionException(PluginPermission.Damage)
27-
return ReloadCommand.Result(commandContext.sender)
24+
override fun parse(ctx: BukkitCommandContext): ReloadCommand.Result {
25+
val hasPermission = ctx.sender.toPermissible().hasPermission(PluginPermission.Damage)
26+
if (!hasPermission) throw NoPermissionException(PluginPermission.Damage)
27+
return ReloadCommand.Result(ctx.sender)
2828
}
2929
}
3030

@@ -39,7 +39,7 @@ internal class ReloadCommandRegistry(
3939
}
4040

4141
fun register() {
42-
plugin.registerCommand(
42+
plugin.setCommandExecutor(
4343
alias = "reload",
4444
commandParser = CommandParserImpl(),
4545
commandExecutor = CommandExecutorImpl(),

instances/bukkit/src/main/kotlin/ru/astrainteractive/astratemplate/command/rickmorty/RandomRickAndMortyCommandRegistry.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ru.astrainteractive.astratemplate.command.rickmorty
22

33
import kotlinx.coroutines.launch
4-
import ru.astrainteractive.astralibs.command.api.util.PluginExt.registerCommand
4+
import ru.astrainteractive.astralibs.command.api.util.PluginExt.setCommandExecutor
55
import ru.astrainteractive.astratemplate.command.DefaultErrorHandler
66
import ru.astrainteractive.astratemplate.command.rickmorty.di.RickMortyCommandDependencies
77

@@ -10,7 +10,7 @@ internal class RandomRickAndMortyCommandRegistry(
1010
) : RickMortyCommandDependencies by dependencies {
1111

1212
fun register() {
13-
plugin.registerCommand(
13+
plugin.setCommandExecutor(
1414
alias = "rickandmorty",
1515
commandParser = { commandContext ->
1616
RandomRickAndMortyCommand.Result(commandContext.sender)

instances/forge/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ val implementation by configurations.getting {
1818
}
1919

2020
dependencies {
21-
minecraft("net.minecraftforge:forge:1.21.3-53.0.25")
21+
minecraft("net.minecraftforge:forge:1.21.4-54.0.17")
2222
// AstraLibs
2323
shade(libs.minecraft.astralibs.core)
2424
shade(libs.minecraft.astralibs.command)

0 commit comments

Comments
 (0)