Name anti-bot feature explicitly for own rate limiting

This commit is contained in:
games647 committed 2021-06-21 17:33:38 +02:00
1 parent 4be0e1333d
commit daf6f06a00
3 files changed
+3 -3

No files matched your search

@@ -81,7 +81,7 @@ public class ProtocolLibListener extends PacketAdapter {
PacketType packetType = packetEvent.getPacketType();
if (packetType == START) {
if (!rateLimiter.tryAcquire()) {
plugin.getLog().warn("Join limit hit - Ignoring player {}", sender);
plugin.getLog().warn("Simple Anti-Bot join limit - Ignoring {}", sender);
return;
}
@@ -66,7 +66,7 @@ public class ProtocolSupportListener extends JoinManagement<Player, CommandSende
}
if (!rateLimiter.tryAcquire()) {
plugin.getLog().warn("Join limit hit - Ignoring player {}", loginStartEvent.getConnection());
plugin.getLog().warn("Simple Anti-Bot join limit - Ignoring {}", loginStartEvent.getConnection());
return;
}