Skip to content

Commit

Permalink
Merge branch 'release/1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nodinim committed Sep 15, 2022
2 parents db3b279 + fda9827 commit b309d79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "jp.iceserver"
version = "1.1.1"
version = "1.1.2"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand Down
11 changes: 10 additions & 1 deletion src/main/kotlin/jp/iceserver/icecat/commands/ReportCommand.kt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,7 +12,14 @@ class ReportCommand : CommandExecutor
{
override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): 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
}
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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 ]
Expand Down

0 comments on commit b309d79

Please sign in to comment.