Allow admins to bypass the playerlimit [server] (#1549)

This commit is contained in:
fuzzbuck
2020-02-11 17:10:50 +01:00
committed by GitHub
parent b15a40fcbd
commit f14df52490

View File

@@ -131,7 +131,7 @@ public class NetServer implements ApplicationListener{
return;
}
if(admins.getPlayerLimit() > 0 && playerGroup.size() >= admins.getPlayerLimit()){
if(admins.getPlayerLimit() > 0 && playerGroup.size() >= admins.getPlayerLimit() && !netServer.admins.isAdmin(uuid, packet.usid)){
con.kick(KickReason.playerLimit);
return;
}