Skip to content

Commit

Permalink
feat: use action event instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MC-XiaoHei committed Feb 18, 2024
1 parent 7e70cb2 commit ac1f676
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cn.xor7.iseeyou.themis
import cn.xor7.iseeyou.EventListener
import cn.xor7.iseeyou.instance
import cn.xor7.iseeyou.toml
import com.gmail.olexorus.themis.api.ActionEvent
import com.gmail.olexorus.themis.api.ViolationEvent
import org.bukkit.Bukkit
import org.bukkit.event.EventHandler
Expand Down Expand Up @@ -34,7 +35,7 @@ object ThemisListener : Listener {
}

@EventHandler
fun onViolation(e: ViolationEvent) {
fun onAction(e: ActionEvent) {
val suspiciousPhotographer = suspiciousPhotographers[e.player.name]
if (suspiciousPhotographer != null) {
suspiciousPhotographers[e.player.name] =
Expand Down

0 comments on commit ac1f676

Please sign in to comment.