Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Mar 11, 2024
1 parent 1f14b6a commit 0f41026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 0f41026

Please sign in to comment.