diff --git a/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java b/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java index 33c458ca6..6363e4f2f 100644 --- a/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java +++ b/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java @@ -483,10 +483,11 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI, ViaVe if (info.getPacketsPerSecond() >= getWarningPPS()) { info.setWarnings(info.getWarnings() + 1); } - } - if (info.getWarnings() >= getMaxWarnings()) { - info.disconnect(getMaxWarningsKickMessage()); - return true; // don't send current packet + + if (info.getWarnings() >= getMaxWarnings()) { + info.disconnect(getMaxWarningsKickMessage()); + return true; // don't send current packet + } } } return false;