3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

This branch would be better here as it won't be applicable if elsewhere.

Dieser Commit ist enthalten in:
Myles 2016-04-17 12:59:01 +01:00
Ursprung 6198dbfe70
Commit a496b2d3a8

Datei anzeigen

@ -483,12 +483,13 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI, ViaVe
if (info.getPacketsPerSecond() >= getWarningPPS()) { if (info.getPacketsPerSecond() >= getWarningPPS()) {
info.setWarnings(info.getWarnings() + 1); info.setWarnings(info.getWarnings() + 1);
} }
}
if (info.getWarnings() >= getMaxWarnings()) { if (info.getWarnings() >= getMaxWarnings()) {
info.disconnect(getMaxWarningsKickMessage()); info.disconnect(getMaxWarningsKickMessage());
return true; // don't send current packet return true; // don't send current packet
} }
} }
}
return false; return false;
} }
} }