mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 19:24:47 +02:00
Rename rate limit to join limit
This commit is contained in:
@@ -56,7 +56,7 @@ public class ProtocolLibListener extends PacketAdapter {
|
|||||||
PacketType packetType = packetEvent.getPacketType();
|
PacketType packetType = packetEvent.getPacketType();
|
||||||
if (packetType == START) {
|
if (packetType == START) {
|
||||||
if (!rateLimiter.tryAcquire()) {
|
if (!rateLimiter.tryAcquire()) {
|
||||||
plugin.getLog().warn("Rate Limit hit - Ignoring player {}", sender);
|
plugin.getLog().warn("Join limit hit - Ignoring player {}", sender);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -40,7 +40,7 @@ public class ProtocolSupportListener extends JoinManagement<Player, CommandSende
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!rateLimiter.tryAcquire()) {
|
if (!rateLimiter.tryAcquire()) {
|
||||||
plugin.getLog().warn("Rate Limit hit - Ignoring player {}", loginStartEvent.getConnection());
|
plugin.getLog().warn("Join limit hit - Ignoring player {}", loginStartEvent.getConnection());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -77,7 +77,7 @@ public class ConnectListener implements Listener {
|
|||||||
|
|
||||||
PendingConnection connection = preLoginEvent.getConnection();
|
PendingConnection connection = preLoginEvent.getConnection();
|
||||||
if (!rateLimiter.tryAcquire()) {
|
if (!rateLimiter.tryAcquire()) {
|
||||||
plugin.getLog().warn("Rate Limit hit - Ignoring player {}", connection);
|
plugin.getLog().warn("Join limit hit - Ignoring player {}", connection);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user