From ac1f676b4a3b45ecc73c1758030b2e7b49e55680 Mon Sep 17 00:00:00 2001 From: MC_XiaoHei Date: Sun, 18 Feb 2024 21:47:04 +0800 Subject: [PATCH] feat: use action event instead --- src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt b/src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt index 27d03e9..fe8de21 100644 --- a/src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt +++ b/src/main/java/cn/xor7/iseeyou/themis/ThemisListener.kt @@ -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 @@ -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] =