#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:
parent
e93c762f16
commit
5ab5a846aa
@ -367,7 +367,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
}
|
}
|
||||||
|
|
||||||
int limit = BungeeCord.getInstance().config.getPlayerLimit();
|
int limit = BungeeCord.getInstance().config.getPlayerLimit();
|
||||||
if ( limit > 0 && bungee.getOnlineCount() > limit )
|
if ( limit > 0 && bungee.getOnlineCount() >= limit )
|
||||||
{
|
{
|
||||||
disconnect( bungee.getTranslation( "proxy_full" ) );
|
disconnect( bungee.getTranslation( "proxy_full" ) );
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user