Skip to content

Commit

Permalink
fix: commandarguments instead array, bump version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed May 28, 2023
1 parent 1d86bcd commit 68af115
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "me.xhyrom.hylib"
version = "1.2.5"
version = "2.0.0"
description = "A powerful library for paper plugins."

repositories {
Expand Down
2 changes: 1 addition & 1 deletion bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
dependencies {
api(project(":hylib-common"))
api("org.bstats:bstats-bukkit:3.0.1")
api("dev.jorel:commandapi-bukkit-shade:9.0.0")
api("dev.jorel:commandapi-bukkit-shade:9.0.1")
api("com.github.retrooper.packetevents:spigot:2.0.0-SNAPSHOT")

compileOnly("org.jetbrains:annotations:24.0.1")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.xhyrom.hylib.bukkit.implementation.managers

import dev.jorel.commandapi.CommandAPICommand
import dev.jorel.commandapi.executors.CommandArguments
import dev.jorel.commandapi.executors.CommandExecutor
import me.xhyrom.hylib.bukkit.api.structs.BukkitCommand
import me.xhyrom.hylib.bukkit.implementation.managers.UtilsManagerImpl.formatCommandArguments
Expand All @@ -18,7 +19,7 @@ class CommandManagerImpl : CommandManager {
.withFullDescription("Command for plugins powered by HyLib")
.withPermission("hy.admin")
.executes(
CommandExecutor { sender: CommandSender, _: Array<Any?>? ->
CommandExecutor { sender: CommandSender, _: CommandArguments ->
run {
sender.sendMessage(
MiniMessage.miniMessage().deserialize(
Expand Down Expand Up @@ -52,7 +53,7 @@ class CommandManagerImpl : CommandManager {
var command: BukkitCommand? = null
command = BukkitCommand(name)
.executes(
CommandExecutor { sender: CommandSender, _: Array<Any?> ->
CommandExecutor { sender: CommandSender, _: CommandArguments ->
run {
sender.sendMessage(
MiniMessage.miniMessage().deserialize(
Expand Down

0 comments on commit 68af115

Please sign in to comment.