#2953: Fix player limit off by one

Make so the player limit is actually the limit and not limit+1
This commit is contained in:
Sneakometer 2020-09-08 12:24:04 +10:00 committed by md_5
parent e93c762f16
commit 5ab5a846aa
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -367,7 +367,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
}
int limit = BungeeCord.getInstance().config.getPlayerLimit();
if ( limit > 0 && bungee.getOnlineCount() > limit )
if ( limit > 0 && bungee.getOnlineCount() >= limit )
{
disconnect( bungee.getTranslation( "proxy_full" ) );
return;