mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 02:34:30 +01:00
ratelimited packet is logged to console on kick (#9292)
This commit is contained in:
parent
03bf77cebd
commit
97487ac8bb
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ case DROP:
|
||||
+ return;
|
||||
+ case KICK:
|
||||
+ String deobfedPacketName = io.papermc.paper.util.ObfHelper.INSTANCE.deobfClassName(check.getName());
|
||||
+ String playerName = this.getPlayer() == null ? "Player (null)" : this.getPlayer().getName().getString();
|
||||
+ Connection.LOGGER.warn("{} kicked for packet spamming: {}", playerName, deobfedPacketName.substring(deobfedPacketName.lastIndexOf(".") + 1));
|
||||
+ this.killForPacketSpam();
|
||||
+ return;
|
||||
+ }
|
||||
|
|
Loading…
Add table
Reference in a new issue