diff --git a/build.gradle.kts b/build.gradle.kts index 983c802..cf5ad18 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "jp.iceserver" -version = "1.1.1" +version = "1.1.2" java.sourceCompatibility = JavaVersion.VERSION_17 repositories { diff --git a/src/main/kotlin/jp/iceserver/icecat/commands/ReportCommand.kt b/src/main/kotlin/jp/iceserver/icecat/commands/ReportCommand.kt index c7e5ebe..f887d66 100644 --- a/src/main/kotlin/jp/iceserver/icecat/commands/ReportCommand.kt +++ b/src/main/kotlin/jp/iceserver/icecat/commands/ReportCommand.kt @@ -1,5 +1,7 @@ package jp.iceserver.icecat.commands +import hazae41.minecraft.kutils.bukkit.msg +import jp.iceserver.icecat.config.MainConfig import jp.iceserver.icecat.menus.report.SelectTargetMenu import org.bukkit.command.Command import org.bukkit.command.CommandExecutor @@ -10,7 +12,14 @@ class ReportCommand : CommandExecutor { override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array): Boolean { - SelectTargetMenu.INVENTORY.open(sender as Player) + sender as Player + if (sender.isGliding) + { + sender.msg("${MainConfig.prefix} &cエリトラでの飛行中はレポートできません。") + return true + } + + SelectTargetMenu.INVENTORY.open(sender) return true } } \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f9aea86..082eddd 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: IceCat -version: '1.1.1' +version: '1.1.2' main: jp.iceserver.icecat.IceCat api-version: 1.18 authors: [ Minidon ]