Skip to content

Commit

Permalink
fix: cancel event
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Jul 29, 2024
1 parent 1d50dd2 commit 0672ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "net.azisaba"
version = "1.15.2+6.16.5"
version = "1.15.2+6.16.6"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(8))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ object BlockListener : Listener {
if (ItemUtil.containsTag(e.itemInHand, "backup") && !e.player.isSneaking) {
e.player.sendMessage("${ChatColor.RED}このブロックを設置すると中身のアイテムが変質し、元の状態に戻らなくなる可能性があります。")
e.player.sendMessage("${ChatColor.RED}この警告を無視して設置したい場合はスニークしながら設置してください。")
e.isCancelled = true
}
}
}

0 comments on commit 0672ab0

Please sign in to comment.