From 0f4102680aef6510ac9ccb9b77de99d81fd5c08a Mon Sep 17 00:00:00 2001 From: HaHaWTH Date: Mon, 11 Mar 2024 17:17:17 +0800 Subject: [PATCH] patch --- .../java/io/wdsj/asw/listener/packet/ASWPacketListener.java | 2 ++ .../java/io/wdsj/asw/listener/packet/ProtocolLibListener.java | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/io/wdsj/asw/listener/packet/ASWPacketListener.java b/src/main/java/io/wdsj/asw/listener/packet/ASWPacketListener.java index 64a38c6..da7ede1 100644 --- a/src/main/java/io/wdsj/asw/listener/packet/ASWPacketListener.java +++ b/src/main/java/io/wdsj/asw/listener/packet/ASWPacketListener.java @@ -110,6 +110,7 @@ public void onPacketReceive(PacketReceiveEvent event) { long endTime = System.currentTimeMillis(); addProcessStatistic(endTime, startTime); Notifier.notice(player, EventType.CHAT, originalContext); + Punishment.punish(player); } } } else if (packetType == PacketType.Play.Client.CHAT_COMMAND) { @@ -143,6 +144,7 @@ public void onPacketReceive(PacketReceiveEvent event) { long endTime = System.currentTimeMillis(); addProcessStatistic(endTime, startTime); Notifier.notice(player, EventType.CHAT, "/" + originalCommand); + Punishment.punish(player); } } } diff --git a/src/main/java/io/wdsj/asw/listener/packet/ProtocolLibListener.java b/src/main/java/io/wdsj/asw/listener/packet/ProtocolLibListener.java index 5197d81..0043224 100644 --- a/src/main/java/io/wdsj/asw/listener/packet/ProtocolLibListener.java +++ b/src/main/java/io/wdsj/asw/listener/packet/ProtocolLibListener.java @@ -104,6 +104,7 @@ public void onPacketReceiving(@NotNull com.comphenix.protocol.events.PacketEvent long endTime = System.currentTimeMillis(); addProcessStatistic(endTime, startTime); Notifier.notice(player, EventType.CHAT, originalContext); + Punishment.punish(player); } } }